Jump to content
  • Advertisement
Sign in to follow this  
NicoG

Integrating chipmunk

This topic is 2651 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Chipmunk lacks some docs, so I need to dig into it myself.
I hope someone can help me with a few Questions.

What exactly do the numbers to for the gravity?
In a sample the author sets it to 0,-100.
What exactly does this?
I know what Gravity is, but how do those numbers influence my actors?
How do you make your numbers up?
Sorry, I am all new to this physics stuff.

I have started out in wrapping all C-Functions into a C++ Interface.
If you want to see some code:
http://code.google.com/p/nightlight2d/source/browse/trunk/NightLightDLL/NLPhysicsWorld.cpp
http://code.google.com/p/nightlight2d/source/browse/trunk/NightLightDLL/NLPhysicsShape.cpp
http://code.google.com/p/nightlight2d/source/browse/trunk/NightLightDLL/NLPhysicsBody.cpp

Now, how do I glue this to my sprite? Just making the matrice from the body and applying it to the vertices?
Where do I set the collision Callbacks?
Sorry to ask but the docs could be really better -.-.
Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!