Can someone explain to me why this code doesn’t work??
i’ve added the object in the Transform slot.
–
var spot : Transform;
function Update () {
transform.position = spot;
}
Can someone explain to me why this code doesn’t work??
i’ve added the object in the Transform slot.
–
var spot : Transform;
function Update () {
transform.position = spot;
}
get rid of the variable "spot" replace it with its value, and then take a look.
transform.position = some-other-transform-of-some-object ;
transform.position = spot.position ;