Constrain Movement to Path
4 posters
Constrain Movement to Path
What would be the easiest way to constrain the movement of an object to a path in 2 dimensions? For example, if there was a train riding on a track the train should only be able to travel forward/backward along the track and jump up off the track but the train should always stay over the track. The only thing I can think of is creating invisible static walls on the left and right side of the track and letting Bullet do the rest but it seems inefficient.
Any ideas?
Any ideas?
uprise78- Posts : 228
Join date : 2008-10-31
Re: Constrain Movement to Path
IPO animation that you could play backward and forward....
Francescu- Posts : 136
Join date : 2009-03-18
Re: Constrain Movement to Path
IPO was the first thing I thought of but it won't work. The constrained object is the player object and needs to be freely movable left, right and jump.
uprise78- Posts : 228
Join date : 2008-10-31
Re: Constrain Movement to Path
Does anybody have any pointers to get me going in the right direction on this one?
uprise78- Posts : 228
Join date : 2008-10-31
Re: Constrain Movement to Path
I would love to hire you for some consultation but right now I am still in the 'playing around' stage learning the engine, learning Blender and just making small bits of games so consultation for something that will probably be thrown away isn't an option. Perhaps later in winter when the real game begins...
uprise78- Posts : 228
Join date : 2008-10-31
Re: Constrain Movement to Path
You could reuse the sio2 ipo code and add if switches to the interpolated x,y,z locations and rotations sections. Then you'll have control over the constraint of the object to the ipo curve on every loop, for every dimension.
goldfrapp0x0309- Posts : 43
Join date : 2009-02-28
Similar topics
» Camera / object movement
» Player Object Movement Tutorial 09
» _SIO2parent child movement problem.
» How to set an object in the opposite direction movement?
» character movement advice
» Player Object Movement Tutorial 09
» _SIO2parent child movement problem.
» How to set an object in the opposite direction movement?
» character movement advice
Permissions in this forum:
You cannot reply to topics in this forum