From 789555e9e3079894fbdeb3fbbdc6ad718fe290de Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Sun, 26 Mar 2023 15:18:39 +0200 Subject: Fix docs for method setting kinematic translation/rotation --- src/dynamics/rigid_body.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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) { 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) { 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) { if self.is_kinematic() { self.pos.next_position = pos; -- cgit