BOX2D Kinematic Platform with parallax layer
Posted
by
Marcell
on Game Development
See other posts from Game Development
or by Marcell
Published on 2012-02-10T03:56:26Z
Indexed on
2012/04/15
5:44 UTC
Read the original article
Hit count: 309
I am using a kinematic body for my moving platform on x-axis, so I set the linear velocity to b2vec2(5,0).
When the player jump on the platform, it works like it is suppose to. But the thing is that my platform is on the obstacle layer and I am moving it with the parallax layer.
So if I setTransform the kinematic platform to follow the obstacle layer than it's physics will not work and the player will slip-off the platform.
I'm developing for iOS and using cocos2d api. Anyway around this?
© Game Development or respective owner