User Tools

Site Tools


4rpl:commands:getobjrotation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
4rpl:commands:getobjrotation [2021/01/24 14:29] – added get/set tabs Sanian4rpl:commands:getobjrotation [2021/09/13 13:52] (current) – added note Grabz
Line 14: Line 14:
 If world is false, then local angles are returned, otherwise world angles are returned. If world is false, then local angles are returned, otherwise world angles are returned.
 Note, use "" (empty string) to indicate the root level object. Note, use "" (empty string) to indicate the root level object.
 +
 +:!: **Note:** Because GetObjRotation returns the value of [[https://docs.unity3d.com/ScriptReference/Transform-eulerAngles.html|eulerAngles]], some rotations will get represented differently when you set euler angles and then read them back out. Do not expect that the values set by SetObjRotation or the initial values set in the unit settings will come out the same when retrieved with GetObjRotation. For example, a unit that's preset with a rotation of (180, 0, 0) will produce a result of (0, 180, 180) when retrieved with GetObjRotation.
  
 ===== Examples ===== ===== Examples =====
4rpl/commands/getobjrotation.1611516589.txt.gz · Last modified: 2021/01/24 14:29 by Sanian