Hi,
I'm trying to have a platform that is moving up and down, to allow other objects to reach higher parts of the b2world.
I tried having a body without mass (my platform) that I'm moving up and down by calling the SetXForm method with small 'y' increases. This was only to allow me to stop the platform in the exact point I need it to be.
Unfortunately, by moving like this, my platform seems to ignore whatever objects are over it, just moving without dragging them up with it.
There has to be a easy way of simulating a moving platform with box2d? Maybe a body with a motor or something?
If someone knows of the a good way of doing it, please help!
Thanks!
João
I'm trying to have a platform that is moving up and down, to allow other objects to reach higher parts of the b2world.
I tried having a body without mass (my platform) that I'm moving up and down by calling the SetXForm method with small 'y' increases. This was only to allow me to stop the platform in the exact point I need it to be.
Unfortunately, by moving like this, my platform seems to ignore whatever objects are over it, just moving without dragging them up with it.
There has to be a easy way of simulating a moving platform with box2d? Maybe a body with a motor or something?
If someone knows of the a good way of doing it, please help!
Thanks!
João