Fix compilation in 2D.

This commit is contained in:
Crozet Sébastien
2021-04-13 13:42:18 +02:00
parent 071a6621a9
commit a4fe46b5c4

View File

@@ -195,9 +195,9 @@ impl PrismaticVelocityConstraint {
}
if damping != 0.0 {
let curr_vel = rb2.linvel.dot(&axis2) + rb2.angvel.dot(&gcross2)
let curr_vel = rb2.linvel.dot(&axis2) + rb2.angvel.gdot(gcross2)
- rb1.linvel.dot(&axis1)
- rb1.angvel.dot(&gcross1);
- rb1.angvel.gdot(gcross1);
motor_rhs += (curr_vel - joint.motor_target_vel) * damping;
}