Jump to content
  • Advertisement

Archived

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

Spiral Guru

Smooth paths in 3D

This topic is 6688 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

Hey all! I am moving fighter craft along a path broken into waypoints. My question is this...how would you guys inform the craft about what they should be doing (they operate on a thrust/inertia basis)? Yes, they need to pass through all the waypoints but it can''t look like they''re doing it. When they''re off a path (and chasing the player for example, or heading back to a ''home'' waypoint) they can just use deterministic thrusts. I don''t see a problem there, does anybody else? Do you determine a bezier curve in 3D for the whole path? How then do you link paths smoothly. Bear in mind these craft can be moving ''waypoint-to-waypoint'' or ''path-to''path'' Anybody have any thoughts or examples I''d like to hear them! thx

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by Spiral Guru

Hey all!

I am moving fighter craft along a path broken into waypoints. My question is this...how would you guys inform the craft about what they should be doing (they operate on a thrust/inertia basis)?

Yes, they need to pass through all the waypoints but it can''t look like they''re doing it.

When they''re off a path (and chasing the player for example, or heading back to a ''home'' waypoint) they can just use deterministic thrusts. I don''t see a problem there, does anybody else?

Do you determine a bezier curve in 3D for the whole path? How then do you link paths smoothly. Bear in mind these craft can be moving ''waypoint-to-waypoint'' or ''path-to''path''


Anybody have any thoughts or examples I''d like to hear them!

thx


You may want to review Craig Reynolds web page on Steering Behavior (I forget the exact URL, something like www.red.cwr but you can easily do a search on Steering Behavior or Flocking with Yahoo/AltaVista and find it).

This form of navigation should produce smooth paths (even through a set of waypoints) if implemented appropriately. I tested Steering Behavior for a wrestling game, for movement out of the ring (in the locker rooms, the back stage and lounge areas) and it produced some very smooth and natually appearing paths, that IMO would look good for fighter craft in 3D space too.

Good luck,

Eric

Share this post


Link to post
Share on other sites
The link is http://www.red3d.com/cwr/steer/gdc99/index.html

it''s a professional article, try to make good use of it

"If you don''t like something, change it. If you can''t change it, change the way you think about it!"

"He who asks is a fool for five minutes, but he who does not ask remains a fool forever."

"Imagination is more important than knowledge, for knowledge is limited while imagination embraces the entire world."(Einstein)

"The normal teacher tells. The good teacher explains. The superior teacher demonstrates. The great teacher inspires."(William Arthur Ward)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I would think all you would need to do to ''fake'' it would be to use a velocity system, like anything else, and tell the computer-controlled ship to always ''thrust'' in the direction of the waypoint. This would cause it to ''swing out'' a bit when it turns (because it takes a bit for the thrust to change direction)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!