 |
|
hello, i am pm
Join Date: Jan 2004
Location: Canalization
|

01-16-2005
, 08:21
|
#10
|
Ummm... Normalized vectors are vector with length = 1 ... So, to normalize a vector, you have to divide each compenent by the length of the vector.
If you want something to move from origin A to origin B, and want it to be done after y seconds, do what BlueRaja proposed. If you want it to go at a constant speed, no matter how far A and B are from each other, first normalize the vector ( the vector I refer to is the result of the subtraction ), and then multiply it by the speed.
You can find some vector functions in my "XS Library"; amxmodx/scripting/include/xs.inc
__________________
hello, i am pm
|
|
|
|