Home   Help Search Login Register  

Author Topic: Fire Direction?  (Read 3611 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Fire Direction?
« Reply #15 on: 21 Jun 2007, 02:54:28 »
Code: [Select]
myPhallicObject setVectorUp [(sin theta)*(sin heading), (sin theta)*(cos heading), cos theta]Where theta is the angle from the vertical and heading is whatever you setDired the missile to. Of course you could replace heading with (getDir myPhallicObject)

« Last Edit: 21 Jun 2007, 02:57:48 by Mr.Peanut »
urp!