How to I get a Vector3 from RigidBodyControl’s rotation?

Hello, I’m trying to apply an impulse to a RigidBodyControl.



How do I get the RBC’s “front” vector so that I can apply the impulse towards the front of the RBC?

Like for any rotation, you multiply with a z-forward vector:

physicsRot.mult(Vector3f.UNIT_Z);

So, am I supposed to use it like this?



physics.applyImpulse(physics.getPhysicsRotation().mult(Vector3f.UNIT_Z), Vector3f.ZERO);



physics is a RigidBodyControl.



EDIT: Yes, it works like it should now. Thanks a lot!