↧
Answer by instruct9r
It gives error, because on C# you can't access only one axis. Create a temrorary variable and lerp it, then assign it to the local position. void OnTriggerStay(Collider other) { Vector3 newPosition =...
View ArticleAnswer by Dhiru
you can't set Z value directly. You have to use its positions. void OnTriggerStay(Collider other) { other.transform.localPosition = new Vector3(other.transform.localPosition.x,...
View Article