📅  最后修改于: 2022-03-11 14:48:44.331000             🧑  作者: Mango
void Start()
{
// transform the world forward into local space:
Vector3 relative;
relative = transform.InverseTransformDirection(Vector3.forward);
Debug.Log(relative);
}