engine icon indicating copy to clipboard operation
engine copied to clipboard

Add get position and rotation properties for RigidBody

Open AlexAPPi opened this issue 7 months ago • 2 comments

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.

AlexAPPi avatar Jun 11 '25 22:06 AlexAPPi

Shouldn't the Entity have the right position and rotation if it has a rigid body?

Maksims avatar Jun 12 '25 07:06 Maksims

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.

AlexAPPi avatar Jun 12 '25 12:06 AlexAPPi