speed to angles

Started by NumB
14/02/2008 00:12
Page 1 of 1
NumB14/02/2008 00:12(edited 14/02/2008 00:12)

There is a code in standart amxx how to make angles in needed speed.

Now i'm wondering how to get angles from speed?

P.S. If noone knows, maybe eDark can help me in this one? It's just a calculation code. =)

ian.cammarata14/02/2008 03:11

I dunno exactly what you're asking, but I'm sure I would have an answer for you if I did. Perhaps velocity_by_aim, or get_view_pos are what you're looking for, gimme more info and I'll try to help you out.

NumB15/02/2008 02:10(edited 15/02/2008 02:11)

nvm. Figured out a way how to detect movment angles by old origin & new origin (I think it will be more currect then bugged velocity). Just finished vertical angle detection - horizontal tomorrow.

Crazycat04/03/2008 11:05

try looking at positions where ct is and where it was maybe it will help you..

skyjur19/03/2008 17:19(edited 19/03/2008 17:24)

vector_to_angle(velocity, angles) is the bugged thing? So velocity is not accurate in the engine or ... ?

If velocity is bugged and you are trying to get an angle you could do smth like this:

difference[0] = current_origin[0] - past_origin[0]
difference[1] = current_origin[1] - past_origin[1]
difference[2] = current_origin[2] - past_origin[2]

vector_to_angles(difference, your_angles)

I am making smth now with that vector_to_angles(velocity...) function... I would be interested to know why is it bugged.

Page 1 of 1

Please log in to post replies.