From f7643272f40fa5776ce21a5ccdb43101d987030e Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Sat, 7 Aug 2021 18:20:19 +0200 Subject: Implement limits for ball joints. --- src/dynamics/joint/revolute_joint.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dynamics/joint/revolute_joint.rs') diff --git a/src/dynamics/joint/revolute_joint.rs b/src/dynamics/joint/revolute_joint.rs index 53a82f5..6531a89 100644 --- a/src/dynamics/joint/revolute_joint.rs +++ b/src/dynamics/joint/revolute_joint.rs @@ -93,7 +93,7 @@ impl RevoluteJoint { /// Can a SIMD constraint be used for resolving this joint? pub fn supports_simd_constraints(&self) -> bool { - // SIMD revolute constraints don't support motors right now. + // SIMD revolute constraints don't support motors and limits right now. !self.limits_enabled && (self.motor_max_impulse == 0.0 || (self.motor_stiffness == 0.0 && self.motor_damping == 0.0)) @@ -142,6 +142,7 @@ impl RevoluteJoint { ) } + /// Estimates the current position of the motor angle given the joint parameters. pub fn estimate_motor_angle_from_params( axis1: &Unit>, tangent1: &Vector, -- cgit