cocos2d chipmunk simple sprite coolision?

Official forum for the Chipmunk2D Physics Library.
Post Reply
alex
Posts: 4
Joined: Tue Apr 28, 2009 7:57 pm
Contact:

cocos2d chipmunk simple sprite coolision?

Post by alex »

Hi

I looked at the moonbuggy tutorial, it's really hard for me to grasp the idea of applying the chipmunk physics
for example to a sprite, I mean how to assign the body to a sprite using cocos2d for iphone?

Thanks in advance!! :?
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: cocos2d chipmunk simple sprite coolision?

Post by slembcke »

cpBody objects have a position and rotation parameter. You would use that when drawing your sprite.

I've never actually used cocos2d though. You could probably get better answers from their own forums.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
alex
Posts: 4
Joined: Tue Apr 28, 2009 7:57 pm
Contact:

Re: cocos2d chipmunk simple sprite coolision?

Post by alex »

I got it, it works!


Thanks!! :P
Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests