0
\$\begingroup\$

I know it is possible to add friction to rev joints by enabling motor and adding maxMotorTorque. I want the same for prism joint but only maxMotorSpeed option is available which didn't quite work for me. Is there another way?

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

The function you are looking for is SetMaxMotorForce. This function is analogous to SetMaxMotorTorque for b2RevoluteJoints.

\$\endgroup\$
1
  • \$\begingroup\$ You are right, it should be called force instead of torque as it is not rotating. So that is the correct terminology. \$\endgroup\$ Commented Aug 2, 2017 at 18:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .