[Bug T3D Beta 1.1.2] setTransform/getTransform inconsistent units - RESOLVED
by Alex Huck · in Torque 3D Professional · 09/09/2010 (10:20 am) · 1 replies
Hi,
When I use getTransform() it returns rotation in degrees.
Though it seems that setTransform expects rotation to be in radians, making it difficult to set an objects rotation based off an offset of their current transform.
This also interferes with proper object saving / loading (I save my players persistence using the .save() method written to a file, later exec()'d. When I load the file everything is loaded correctly except player rotation, which I suspect is due to this inconsistency in setter/getter units)
When I use getTransform() it returns rotation in degrees.
Though it seems that setTransform expects rotation to be in radians, making it difficult to set an objects rotation based off an offset of their current transform.
This also interferes with proper object saving / loading (I save my players persistence using the .save() method written to a file, later exec()'d. When I load the file everything is loaded correctly except player rotation, which I suspect is due to this inconsistency in setter/getter units)
Torque 3D Owner Tim Dix (Raverix)
http://www.torquepowered.com/community/forums/viewthread/119543