Jump to content
  • Advertisement

Archived

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

Cuculain

Aligning objects on terrain

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

I want to implement a nice algorithm for orienting/aligning units/objects on a terrain grid. It is for a RTS game so it doesn''t have to be perfect, but rather fast and simple. I''m currently thinking about taking the triangle/face that the unit is on and averaging between that face and an ''up''-vector. Also when moving between two faces the old and new face should first be averaged and then the result averaged with the ''up''-vector. I''m very interested in information/ideas about how something like the above could be accomplished in a good way, preferably without heavy math.

Share this post


Link to post
Share on other sites
Advertisement

  • 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!