Raised This Month: $ Target: $400
 0% 

Calculating velocity from angles


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Blinx
Senior Member
Join Date: Oct 2013
Old 03-01-2017 , 12:34   Calculating velocity from angles
Reply With Quote #1

How do I calculate an entity's velocity if I want to push it in a direction with given angles? FF2 partially has the answer but not for the Z velocity:
PHP Code:
velocity[0]+=Cosine(DegToRad(angles[0]))*Cosine(DegToRad(angles[1]))*500*multiplier;
velocity[1]+=Cosine(DegToRad(angles[0]))*Sine(DegToRad(angles[1]))*500*multiplier;
velocity[2]=(750.0+175.0*charge/70+2000)*multiplier
Blinx is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode