Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

InverseTransformDirection

void Start()
{
  // transform the world forward into local space:
  Vector3 relative;
  relative = transform.InverseTransformDirection(Vector3.forward);
  Debug.Log(relative);
}
 
PREVIOUS NEXT
Tagged: #InverseTransformDirection
ADD COMMENT
Topic
Name
2+2 =