Jump to content
  • Advertisement


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


Aligning objects on terrain

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

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!