#How to move an object in the same direction as another object

1 messages · Page 1 of 1 (latest)

naive vessel
#

Ok. So step 1. I can move an object by using object.velocity = <vector>

misty ferry
#

well if it has a rigidbody then yes, you can assign its velocity to move it

naive vessel
#

yes

#

now for the tricky bit. How to move an object in a specific direction

misty ferry
#

well velocity is a Vector3 representing the direction and speed of movement on each axis

naive vessel
#

ok

#

soon i will take a break

#

i have been programming for 3 hours straight now