Move an object in x, z plain

zeroonea

21-10-2010 09:30:15

Hi, I making a object move on the x, z plain.
When it moving, it will facing with its' destination. I'm done a rotation part. I need help with velocity part below:


My object has material with friction = 0, so it can move forever. If destination is Vector3(11, 0, -37), it will move toward that point. The destination can change when it moving.

zeroonea

21-10-2010 19:03:18

Nevermind, I found a solution


objbody.Velocity = objorient * new Vector3(0, 0, 1) * run_speed;