Home   Help Search Login Register  

Author Topic: setvelocity - is it relative?  (Read 999 times)

0 Members and 1 Guest are viewing this topic.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
setvelocity - is it relative?
« on: 01 Mar 2005, 01:50:33 »
or are the x/y positional elements compass-based according to the map?

i only ask, as i need to know if a vehicle is travelling at a speed forwards, too fast to stop beyond a certain point - my loons are still getting run over i'm afraid, and (for the time being) my sadistic tendencies are quite subdued.....

for the time being, my pretties... >cacklecackle<

Dubieman

  • Guest
Re:setvelocity - is it relative?
« Reply #1 on: 01 Mar 2005, 02:35:43 »
Not relative. It goes by compass directions, good when you're making trucks race across a certain Nogova bridge ;), but bad when you want the unit to get pushed forward in the current direction he is facing. Though there are ways around this, using some math and getdir commands. ;)

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:setvelocity - is it relative?
« Reply #2 on: 01 Mar 2005, 03:42:11 »
oh, but not just any math. trigonometry

basically if you know how to use sin, cos, and tan (and asin acos atan) you can control velocities by direction
if not, THobson will be in shortly to post an entire page of explaination/examples/who knows what

You know its true THobson, its an undeniable fact ;D
« Last Edit: 01 Mar 2005, 03:42:55 by Triggerhappy »

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:setvelocity - is it relative?
« Reply #3 on: 01 Mar 2005, 08:17:06 »
Quote
THobson will be in shortly to post an entire page of explaination/examples/who knows what

You know its true THobson, its an undeniable fact  


 ;DLol:
Ready and waiting.  I have had to post it a lot recently - very topical at the moment it seems.
« Last Edit: 01 Mar 2005, 08:20:37 by THobson »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:setvelocity - is it relative?
« Reply #4 on: 01 Mar 2005, 09:54:02 »
It is a curiosity of the forum.    The probability of a question coming up is significantly higher if it has come up a lot recently.
Plenty of reviewed ArmA missions for you to play

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:setvelocity - is it relative?
« Reply #5 on: 01 Mar 2005, 09:55:03 »
heheh... mhmm. to his credit, it's due to THobson's clear explanations of trig use in ofp that i already knew how that's accomplished ;)

thanks, i can now save the loons from carmageddon. all the more to shoot at....