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

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -