• FEATURED

View more

View more

View more

### Image of the Day Submit

IOTD | Top Screenshots

### The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

# Re-routing with curves ??

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

2 replies to this topic

### #1NinjaCross  Members

Posted 06 June 2000 - 10:39 PM

Hi !! Please Guys (sorry for my bad english), i''m making a game where i have a 3d map. In this map some units are able to move into. So, consider this situation: A unit is moving from point A (start point) and point B (target). But, Before the unit arrives to point B, target i redefined as point C (obviously different to B). How can i make the unit change its direction "steering" (tracing an immaginary curve, not a angle) ?? I tried with Bezier''s curves, but they''re too difficult to implement. Does exist a faster and easier solution ? Please, write every advice you know about it. Thanks !! //------------- Making Funny Fake Codes //-------------

### #2StrategicAlliance  Members

Posted 06 June 2000 - 10:58 PM

What you are refering to is known as ''non-holonomic'' motion planning. It''s like driving a car, you can''t just reverse direction and maintain the same speed. Therefore you have to implement some kind of physics model in your game, using the mass of your object, its current speed and stuff to calculate the curve it needs to make to reach that point. This can be kind of tricky though since it involves quite complicated math.

******************************
Stefan Baert

On the day we create intelligence and consciousness, mankind becomes God.
On the day we create intelligence and consciousness, mankind becomes obsolete...
******************************

### #3NinjaCross  Members

Posted 06 June 2000 - 11:25 PM

Thanks StrategicAlliance, your help was very useful !

//-------------
Making Funny Fake Codes
//-------------

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.