#how to tell which direction a object is going in vector3
24 messages · Page 1 of 1 (latest)
Get Velocity returns the object/player's velocity (could also be a non-normalized direction) as vector3. Is this what you meant?
Not get velocity
Vector3s represent the direction an object is going in.
Then what?
If an object I threw was going up I want a velocity add to make it keep going the same direction I threw it
get velocity
Really?
yeah, but I recommend you normalize the vector
Get velocity returns a vector3 of the object's velocity.
with a Vector3 normalize chip
Ok thank you
Velocity Add also adds the magnitude of a direction, so not normalizing the Get Velocity output could bring weird results.
I thought get velocity was how fast it was going
It kinda is, it tells you how fast it's going on each axis. BUT because of this, this is also the direction of the movement.
Bob has a velocity of (0, 1, 0), the direction of his movement is (0, 1, 0)!
Amazing