alex
Posts: 4 Joined: Tue Apr 28, 2009 7:57 pm
Contact:
Post
by alex » Tue Apr 28, 2009 8:07 pm
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!!
slembcke
Site Admin
Posts: 4166 Joined: Tue Aug 14, 2007 7:13 pm
Contact:
Post
by slembcke » Wed Apr 29, 2009 7:51 am
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:
Post
by alex » Wed Apr 29, 2009 6:19 pm
I got it, it works!
Thanks!!
Users browsing this forum: No registered users and 10 guests