- Home /
Question by
anjesher · Oct 16, 2016 at 06:26 PM ·
transformtransform.positionrelative positionmove object
Moving an object along one axis based on the position of a different object
Hi, I'm trying to make a room that stretches up to a point as the player approaches one of its walls. I have an object (StretchWall) that will move along the Z axis to simulate the room stretching. My question is, how can I have this StretchWall object move on this axis (between 2 points so it doesn't extend forever) as the player moves along the Z axis?
Thanks in advance
Comment
Your answer
Follow this Question
Related Questions
transform.position not executed with OnTrigger2D 1 Answer
Move gameObject with mouse 1 Answer
How do i make my background keep the same position as my character? 0 Answers
How to make my own Transform inspector without using a Custom Inspector to override Transform ? 2 Answers
Where is the transform.position inside of a GameObject? 1 Answer