c# - How do you move one object along Z the same amount that another object is moved along Y -
vector3 position = transform.position; position.z = target.rigidbody.position.y; transform.position = position; i feel need change 1 thing here. i'm not sure how code work,s it's better error got when started `transform.position.z = target.rigidbody.position.y; should easy answer, right?
Comments
Post a Comment