[SOLVED] controlling joints

Official forum for the Chipmunk2D Physics Library.
Post Reply
Fs02
Posts: 2
Joined: Tue Jul 01, 2014 8:37 pm
Contact:

[SOLVED] controlling joints

Post by Fs02 »

Hello, i'm working on a project using cocos2d-js and chipmunk and got stuck on how to control chipmunk joint, i'm very new on chipmunk physics but i've already familiar with box2d before.

I'm looking for example about how to manipulate chipmunk joints, not just how to create it but also how to control it, i've found some examples before but it just showing how to create a joint, not how to control it.
It'll be very helpfull if someone write an example or give a link to an example.

Thanks very much :-)
Last edited by Fs02 on Wed Jul 02, 2014 9:11 pm, edited 1 time in total.
Fs02
Posts: 2
Joined: Tue Jul 01, 2014 8:37 pm
Contact:

Re: controlling joints

Post by Fs02 »

In case anybody need the solution, i already doing some experiment and i found the solution :)

The solution is just combine some joint together, for example if you have ChipmunkPivotJoint and you want to limit it's rotation, just add ChipmunkRotaryLimitJoint to the same body, and also if you want the joint to have motor then add ChipmunkSimpleMotor.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 18 guests