Jump to content

  • Log In with Google      Sign In   
  • Create Account

controlling chipmunk joints

  • You cannot reply to this topic
2 replies to this topic

#1 Fs02   Members   -  Reputation: 371


Posted 01 July 2014 - 07:24 PM

Hello, i'm working on a project using cocos2d-js and chipmunk and gut 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 :-)

[my game in #ggj14 : http://www.indiedb.com/games/romance-stalker [my blog : http://surya.volge.net ]


#2 BeerNutts   Crossbones+   -  Reputation: 2576


Posted 02 July 2014 - 07:20 AM

Hi FS02,


I was going to suggest you submit this question to the chipmunk2d forum, but then I saw you already had.  Be patient, that forum is the right place for chipmunk physics specific questions.


Otherwise, keep going over the api and experimenting, you'll probably learn it yourself before someone gives you an answer.

My Gamedev Journal: 2D Game Making, the Easy Way

---(Old Blog, still has good info): 2dGameMaking
"No one ever posts on that message board; it's too crowded." - Yoga Berra (sorta)

#3 Fs02   Members   -  Reputation: 371


Posted 02 July 2014 - 08:00 PM

Hi BeerNutts,

Thanks for reply, 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.

[my game in #ggj14 : http://www.indiedb.com/games/romance-stalker [my blog : http://surya.volge.net ]