Removed useless logging from cEntity::GetLookVector()
Requested by STR_Warrior http://forum.mc-server.org/showthread.php?tid=434&pid=6368#pid6368 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1205 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -273,12 +273,11 @@ void cEntity::SetRoll( float a_Roll )
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// Get look vector (this is NOT a rotation!)
|
||||
Vector3f cEntity::GetLookVector()
|
||||
Vector3f cEntity::GetLookVector(void) const
|
||||
{
|
||||
Matrix4f m;
|
||||
m.Init( Vector3f(), 0, m_Rot.x, -m_Rot.y );
|
||||
Vector3f Look = m.Transform( Vector3f(0, 0, 1) );
|
||||
LOG("Look: %0.1f %0.1f %0.1f", Look.x, Look.y, Look.z );
|
||||
return Look;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user