another question not really related to Uscript for u guys, how do the engine transform a rotator into a vector when we use rotator(MyVector) ?
rotator into a vector
rotator to vector, or vector to rotator?rotator(MyVector)
if ( V.X == 0 && V.Y > 0 )
R.Yaw = 16383;
else if ( V.X == 0 && V.Y > 0 )
R.Yaw = 49151;
else if ( V.X != 0 ) {
F = ACos(V.X / VSize(V * vect(1,1,0))) * 32768 / Pi;
if ( V.Y > 0 )
R.Yaw = F;
else
R.Yaw = 65536 - F;
}
Its called Linear Algebra(part Three-dimensional Geometry), and pray to god you dont have to learn it like i did.Daid303 said:I think he more means like we onces explained how normal, and VSize could work internaly.
But I have no clue how they do rotator<->vector stuff.