dimforge / rapier

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

Swapped Words In Rigidbody Documentation #469

Closed YouSafe closed 1 year ago

YouSafe commented 1 year ago

The documentation for the rigidbody methods RigidBody#set_next_kinematic_translation and RigidBody::set_next_kinematic_rotation have their descriptions swapped.

/// If this rigid body is kinematic, sets its future translation after the next timestep integration. pub fn set_next_kinematic_rotation(&mut self, rotation: Rotation) {

/// If this rigid body is kinematic, sets its future orientation after the next timestep integration. pub fn set_next_kinematic_translation(&mut self, translation: Vector) {

https://docs.rs/rapier3d/0.17.2/rapier3d/dynamics/struct.RigidBody.html#method.set_next_kinematic_translation

https://github.com/dimforge/rapier/blob/ff4c885195eb6adef2a318134aedcb985b6e88b4/src/dynamics/rigid_body.rs#L776