PDA

View Full Version : Having an object follow a path



12-04-2000, 09:08 PM
Hello, I'm wondering if it's possible to use glMap2f() with control points to get a beizer curve and have a group of polys follow that path.

I know I can use glEvalCoord2f() to draw a line strip to get a beizer curve, but how can I extract points from that function to place an object at those x,y,z values? Once I get those points, calculating a heading using the last point shouldn't be diffcult. I am I going about this wrong?

Michael Steinberg
12-05-2000, 07:00 AM
You'll need to write such a thing for your own, since the opengl utility functions only define meshes, and you need actual vertices on the bezier curve.