I want to make a script that will follow the position of another object, i know how to make it but i don’t know how to make a script that will see the current position of the object that i want to follow.
here is some code, It tracks the other objects position and gives it as a vector 3 is that what you needed?
var other : Transform;
var otherPos : Vector3;
Update()
{
otherPos = other.position;
Debug.Log("" + otherPos);
}
Perfect!