Moving along a path

bitstuffer
Posts: 1
Joined: Fri Jan 28, 2011 9:44 am

Moving along a path

Post by bitstuffer »

Hello, this is my first post in this forum.

I have successfully used the slider constraint to force a dynamic body to only move in a straight line.
But now I want to force the body to not only move in a line but follow a predefined path. The path is made up with the help of a spline.
Is this possible at all in Bullet? Is there any constraint or any other way to make the body follow a path that might have curves?

Or do I need to add multiple line segments by using multiple slider constraints to make the body follow the path?

I really need to use dynamic bodies. With kinematic bodies following a path would be easy but I want to take advantage of the collision detection and responses I get "for free" by using dynamic bodies.