Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Question...
Re: Question... [message #466413 is a reply to message #465856] Fri, 20 April 2012 07:14 Go to previous messageGo to previous message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma:
General (3 Stars)

Get_Facing/Set_Facing are definatly manipulating the Z axis. Get_Facing is calling Matrix3D::Get_Z_Rotation.

The reason Rotation.Z and Get_Facing/Set_Facing are different is that Get_Facing converts the returned result from Radians to Degrees before it returns it and Set_Facing converts the passed in value to Radians before using it.

The Matrix3D functions do not do this.
If you need to do the conversion, use DEG_TO_RADF and RAD_TO_DEGF.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: scripts when changing character
Next Topic: C&C Hourglass Amsterdam's Red Light District Progress
Goto Forum:
  


Current Time: Mon Dec 23 05:39:14 MST 2024

Total time taken to generate the page: 0.01059 seconds