Added support for head yaw tracking and packet sending and fixed bug in BroadcastMovementUpdate
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1350 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -153,6 +153,7 @@ void cMonster::Tick(float a_Dt, MTRand & a_TickRandom)
|
||||
double Rotation, Pitch;
|
||||
Distance.Normalize();
|
||||
VectorToEuler( Distance.x, Distance.y, Distance.z, Rotation, Pitch );
|
||||
SetHeadYaw (Rotation);
|
||||
SetRotation( Rotation );
|
||||
SetPitch( Pitch );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user