Results 1 to 2 of 2

Thread: Having an object follow a path

  1. #1
    Guest

    Having an object follow a path

    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?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Dec 2007
    Posts
    1,077

    Re: Having an object follow a path

    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.

Similar Threads

  1. Replies: 0
    Last Post: 01-10-2017, 07:37 AM
  2. Camera follow object.
    By vantage in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-16-2007, 05:00 AM
  3. Follow an object
    By mick in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-04-2004, 10:38 PM
  4. How do i get the rotation axis to follow my object?
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-28-2002, 01:53 AM
  5. let an object follow a heightmap
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-03-2001, 11:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean