I Need a plane that follows the player, only the x,z position, as I have put a camera from the sky to indicate where the player if you enable this camera, as I can do and try transform.Translate (player.transform. position) but doesn’t work , and many more that I have seen but I like a little guidance
How about making the plane a child of the player in the Hierarchy? If you want smooth movement you can use something like this on your following object (not having it as a child):
var player : Transform;
var speed : int = 2;
var objHeight : int = 50;
function Update() {
transform.position.x = Mathf.Lerp(transform.position.x, player.transform.position.x, Time.deltaTime*speed);
transform.position.z = Mathf.Lerp(transform.position.z, player.transform.position.z, Time.deltaTime*speed);
transform.position.y = objHeight;
}