0

I have got two objects in a world. One of them is an archer, and I would like him to shoot the other one in a 3D space.

How do I know what X, Y, and Z velocities to give the arrow? I obviously know about sines and cosines and stuff, but for some reason I seem to be unable to work out how to use them to do this.

  • Sorry about the short post. I couldn't work out how to make it any better. I'm incredibly tired, since I've been programming all day. – user2722083 Feb 22 '15 at 15:46
  • If you are working in 2D then this page on wikipedia about projectile motion will help, http://en.wikipedia.org/wiki/Projectile_motion – Vikram Feb 22 '15 at 15:51
  • @Vikram It's in 3D space. – user2722083 Feb 22 '15 at 15:55
  • 2
    Is gravity involved? Are the objects moving? If not, the velocities just need to be some number times the difference in coordinates. If that number is $1$, the arrow will get there in one time unit. – Ross Millikan Feb 22 '15 at 16:01

0 Answers0