1
\$\begingroup\$

I want to make b2mouse joint working similar to b2setposition, though i know in mouse joint force is applied, so it's not possible to reach the desired point without any delay like setPosition(), but i want to make it works as close as b2setPosition(). So on which mousejoint/body properties should i work on so that it acts as close as b2setposition.

Thanks for your answer.

\$\endgroup\$
1
\$\begingroup\$

You can look how MouseJoint is implemented and make some changes to it or create your own joint, to make it work the way you need.

\$\endgroup\$
  • \$\begingroup\$ yea i know it, but i want to know which property???Or there is any example anywhere??? \$\endgroup\$ – russell Oct 27 '11 at 10:12
  • \$\begingroup\$ Look at SetMaxForce property, the more it is quicklier body moves. And damping it will not allow body to bounce around your mouse. But when you have huge your moving object can collide other object and to make some unexpected behaviour \$\endgroup\$ – Yevhen Oct 27 '11 at 10:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.