cocos2d iphone - Chipmunk body move with Parallax? -


I am using cocos 2D, space manager and chipmunk. I have a parallax node with 4 layers, this is a playable chipmun attached to the body location. This body needs to collide with fixed objects on one of the vertical layers, static bodies have to start from the screen and then have to penetrate into the screen and collide.

I know that you should not carry static bodies with the chipmunk. You can not take Rehash though, to keep up with the framerate, it seems 60 times once again messed up. Can someone think of an alternative way of doing this?

Cheers.

One thing you can try is by using hard joints in each non-colliding body Each vertical layer is joining in all the objects. Then move that body with a vertical layer with which to draw objects. This may not be the best method.


Comments