InverseTransformDirection
void Start()
{
// transform the world forward into local space:
Vector3 relative;
relative = transform.InverseTransformDirection(Vector3.forward);
Debug.Log(relative);
}
Are there any code examples left?
New code examples in category C#