Add get position and rotation properties for RigidBody
When adding a fixed step, it is very useful to obtain the precise position and rotation of the Rigidbody to ensure accurate and predictable object behavior in the physics simulation.
I confirm I have read the contributing guidelines and signed the Contributor License Agreement.
Shouldn't the Entity have the right position and rotation if it has a rigid body?
Shouldn't the Entity have the right position and rotation if it has a rigid body?
For an Entity, the position and rotation are typically represented as interpolated values of the actual positions multiplied by the respective velocities, which is useful for smooth animations and visualization. However, in some cases, it is necessary to obtain precise, non-interpolated values of position and linear velocity to ensure accurate physics calculations.