- Home /
Question by
once2go · Dec 16, 2013 at 03:23 PM ·
rotationtransformcoordinatesworld
Get rotation in self coordinate system
Hello I have problem with getting rotation pos. in my pinball game Actually my obj.transform.rotation.(x,y,z);
return me different value that i have in my inspector of object I thin'k that the problem in this case that i see there self coordinate but my script get world coordinate how change this system in script(especially for getting position) Thank you
Comment
Answer by GameVortex · Dec 16, 2013 at 03:25 PM
To get local values of rotation and position you can use: localRotation and localPosition.
obj.transform.localRotation
obj.transform.localPosition
Your answer
Follow this Question
Related Questions
Coordinate Transformation 1 Answer
Transform.Translate() coordinates confusion 2 Answers
bone rotations changed in 4.3.2 inspector? 0 Answers