Adding restitution and friction to engine