Hi everyone. Is there a way to have an object “mirror” another object using scripting? Thanks.
var otherObject : Transform;
function LateUpdate () {
transform.position = otherObject.position;
transform.rotation = otherObject.rotation;
transform.localScale = otherObject.localScale;
}
Add it as a child of the first object in the inspector or through code.