dimforge / rapier

2D and 3D physics engines focused on performance.
https://rapier.rs
Apache License 2.0
4.12k stars 252 forks source link

[Feature Request] Support shift origin function #456

Open LogicFan opened 1 year ago

LogicFan commented 1 year ago

Similar to the shiftOrigin(Vec3) function provided in Phyx.

https://docs.nvidia.com/gameworks/content/gameworkslibrary/physx/guide/Manual/OriginShift.html

This is useful when developing a large world game where the float precision issue could exist.

Compared to manually updating all colliders/rigid bodies to shift a location, this method could preserve some caches, which gives better performance.

sebcrozet commented 1 year ago

I agree this is a nice feature we should add in the future.