• Advertisement

Archived

This topic is now archived and is closed to further replies.

question about bezeir curve

This topic is 5943 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im using Bezeir curve to build the racing track in my car racing came.I used 2 Bezeir curves for each loop - inner and outer loops, ie 4 curves totally. However, I cannot bound the car inside the track. Can someone help me? I have been suffer from this problem for few days

Share this post


Link to post
Share on other sites
Advertisement
Could you explain what you mean by "cannot bound the car inside the track"? Do you mean you are having trouble determining if a point is between two bezier curves?

Share this post


Link to post
Share on other sites
beziers curves are quite difficult to control, they generate the most aesthetically pleasing curves (apparently!) but they dont go through the control points. However, something like a Catmull-Rom or Hermite spline will, and I have been using the Hermite Spline formula for my racing type game... and it works a beauty...

go look into it, I got the formula from the key-frame animation article in Game-Programming-Gems-Volume-1....

Jack;

Share this post


Link to post
Share on other sites

  • Advertisement