dimforge / rapier

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

Expose method for setting multibody joint position #381

Closed jsatka closed 2 years ago

jsatka commented 2 years ago

Exposing the set_free_pos method publicly is necessary in order to initialize a multibody joint in different position than the reference zero-position of the joint represented by the local frames.

This is necessary e.g. in robotics simulation, when a robot needs to be initialized in various postures represented by joint rotation deltas with regard to a default reference posture, which represents zero-positions of joints.