Raised This Month: $ Target: $400
 0% 

calculating different velocities from an origin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
liinuus
Senior Member
Join Date: Apr 2010
Old 07-14-2011 , 11:22   Re: calculating different velocities from an origin
Reply With Quote #1

Quote:
Originally Posted by abdul-rehman View Post
U need kind of a force field ? Right ?
no i was thinking of adding an knockback velocity to an explosion, but it would look silly if all the players flew at the same direction even when theyre on different sides of the explosion
liinuus is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-14-2011 , 13:52   Re: calculating different velocities from an origin
Reply With Quote #2

You just need to find the vector from the origin (explosion) to the player and use that direction as the direction of the player's velocity (you would need to scale the magnitude appropriately).
__________________
fysiks is offline
liinuus
Senior Member
Join Date: Apr 2010
Old 07-14-2011 , 14:20   Re: calculating different velocities from an origin
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
You just need to find the vector from the origin (explosion) to the player and use that direction as the direction of the player's velocity (you would need to scale the magnitude appropriately).
yes thats the part i dont know how to do, i havnt had much experience in vectors so i do not know how i could use it to get the direction, everything else i know how to do
liinuus is offline
Reply



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 00:49.


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