Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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.

share|improve this answer
    
yea i know it, but i want to know which property???Or there is any example anywhere??? –  russell Oct 27 '11 at 10:12
    
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 –  bobenko Oct 27 '11 at 10:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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