Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Question...
Re: Question... [message #466421 is a reply to message #466413] Fri, 20 April 2012 11:07 Go to previous message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma:
Recruit
jonwil wrote on Fri, 20 April 2012 16:14

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.



huh :s

what the code does for me right now is
create a zone thats not even slight in th right facing its just a random direction and its not really usefull

and if i understand correctly i can solve that by

doing DEG_TO_RADF(Commands->Get_Facing(obj))to set the Z rotation?

yep that did it thnx guys


can i attach a zone to a object?


Owner of kambot TT server

kambot.freeforums.org

[Updated on: Sat, 21 April 2012 06:24]

Report message to a moderator

 
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 01:24:34 MST 2024

Total time taken to generate the page: 0.01059 seconds