diff options
| author | Sébastien Crozet <developer@crozet.re> | 2023-03-26 15:19:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-26 15:19:57 +0200 |
| commit | cf6b6d20b6bca0596655736272e30613d5625b0b (patch) | |
| tree | 5fecf3b4d94967bf443371b0a2eeb2b902b10026 /src | |
| parent | 66fdc38d5480f3bdd305a09b073b08554f26b870 (diff) | |
| parent | 789555e9e3079894fbdeb3fbbdc6ad718fe290de (diff) | |
| download | rapier-cf6b6d20b6bca0596655736272e30613d5625b0b.tar.gz rapier-cf6b6d20b6bca0596655736272e30613d5625b0b.tar.bz2 rapier-cf6b6d20b6bca0596655736272e30613d5625b0b.zip | |
Merge pull request #471 from dimforge/doc-fix
Fix docs for method setting kinematic translation/rotation
Diffstat (limited to 'src')
| -rw-r--r-- | src/dynamics/rigid_body.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dynamics/rigid_body.rs b/src/dynamics/rigid_body.rs index cd1a0dc..f6c954f 100644 --- a/src/dynamics/rigid_body.rs +++ b/src/dynamics/rigid_body.rs @@ -765,21 +765,22 @@ impl RigidBody { } } - /// If this rigid body is kinematic, sets its future translation after the next timestep integration. + /// If this rigid body is kinematic, sets its future orientation after the next timestep integration. pub fn set_next_kinematic_rotation(&mut self, rotation: Rotation<Real>) { if self.is_kinematic() { self.pos.next_position.rotation = rotation; } } - /// If this rigid body is kinematic, sets its future orientation after the next timestep integration. + /// If this rigid body is kinematic, sets its future translation after the next timestep integration. pub fn set_next_kinematic_translation(&mut self, translation: Vector<Real>) { if self.is_kinematic() { self.pos.next_position.translation = translation.into(); } } - /// If this rigid body is kinematic, sets its future position after the next timestep integration. + /// If this rigid body is kinematic, sets its future position (translation and orientation) after + /// the next timestep integration. pub fn set_next_kinematic_position(&mut self, pos: Isometry<Real>) { if self.is_kinematic() { self.pos.next_position = pos; |
