CodeBase - RTS Visible Unit Rotation

Return to the CodeBase listing

Category: Basic 3D

Version: 1.0

0
0

Information

Uploaded: 29th Mar 2005 09:54

Modified: 3rd Jul 2005 09:41

Author:  Pyro_guy

Summary

A peice of code used to slowly rotate objects towards the 3dCursor, like units in RTS games for example.

Full Description

A peice of code used to slowly rotate objects towards the 3dCursor, like units in RTS games for example.<br /> <br /> I was having trouble getting objects to rotate through the shortest angle to reach the desired rotation, this code solves that problem.<br /> <br /> The code uses a dummy object to find the desired angle by pointing it in the direction of the cursor. You could, however, use the ATANFULL method, but the 'Dummy' method has been used here for simplicity.<br /> <br /> Special Thanks to:<br /> Chris K, WOLF, Van-B, RiiDii, Benjamin, Aura<br /> Forum topic here: http://forum.thegamecreators.com/?m=forum_view&amp;t=50979&amp;b=1&amp;p=0

Comments

No comments yet.