Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: setVelocity  (Read 7192 times)

0 Members and 1 Guest are viewing this topic.

Musket

  • Guest
Re:setVelocity
« Reply #15 on: 17 Oct 2002, 17:03:12 »
What would you put to get a trigger to activate at a certain speed or altitude?

Chomps

  • Guest
Re:setVelocity
« Reply #16 on: 18 Oct 2002, 00:24:38 »
What would you put to get a trigger to activate at a certain speed or altitude?

I am not sure what exactly you mean.  If you want plain speed in whatever direction, I believe there is a separate command for that (speed, I think) and for altitude you use getPos whatever select 2.

If you want the total speed as in the magnitude of its total velocity vector using velocity you would use...

sqrt((velocity thing select 0)*(velocity thing select 0) + (velocity thing select 1)*(velocity thing select 1) + (velocity thing select 2)*(velocity thing select 2))