Merge pull request #571 from AnonymousAcid7787/fix-Setting-the-motor-position-of-a-Spherical-multibody-joint-is-broken
Fix #416 Update spherical joint motor position
This commit is contained in:
@@ -115,6 +115,9 @@ impl MultibodyJoint {
|
||||
let angvel = Vector3::from_row_slice(&vels[curr_free_dof..curr_free_dof + 3]);
|
||||
let disp = UnitQuaternion::new_eps(angvel * dt, 0.0);
|
||||
self.joint_rot = disp * self.joint_rot;
|
||||
self.coords[3] += angvel[0] * dt;
|
||||
self.coords[4] += angvel[1] * dt;
|
||||
self.coords[5] += angvel[2] * dt;
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user