Hi. My cube (which has been rotatated i.e. not aligned with the world axis), has its local x (red) axis pointing towards the right of my screen. I need to somehow have this as a world vector.
Can anyone help, i cant get my head around it.
Daniel
Hi. My cube (which has been rotatated i.e. not aligned with the world axis), has its local x (red) axis pointing towards the right of my screen. I need to somehow have this as a world vector.
Can anyone help, i cant get my head around it.
Daniel
TransformPoint and TransformDirection Convert from local to world space.
InverseTransformPoint and InverseTransformDirection do the opposite.
Added from comment :
http://docs.unity3d.com/Documentation/ScriptReference/Transform-right.html
The transform’s x axis in world space.