Sources/CryGame C++/Solution1/CryGame/XPlayerCamera.cpp
//////////////////////////////////////////////////////////////////////////
// sets players EYE position on head bone (camera for fpv)

sets players EYE position on head bone (camera for fpv)
sets players EYE position on head bone ( camera for fpv )
void CPlayer::SetEyePosBone()
{
	if (!m_pBoneHead)
		return;
	Vec3d bPos = m_pBoneHead->GetBonePosition();
	Matrix44 mat;
	mat=Matrix44::CreateRotationZYX(-m_pEntity->GetAngles()*gf_DEGTORAD); 
	bPos = mat.TransformPointOLD(bPos);
	m_vEyePos = bPos + m_pEntity->GetPos();
}
void CPlayer :: SetEyePosBone ( ) { if ( ! m_pBoneHead ) return ; Vec3d bPos = m_pBoneHead -> GetBonePosition ( ) ; Matrix44 mat ; mat = Matrix44 :: CreateRotationZYX ( - m_pEntity -> GetAngles ( ) * gf_DEGTORAD ) ; bPos = mat . TransformPointOLD ( bPos ) ; m_vEyePos = bPos + m_pEntity -> GetPos ( ) ; }
sets players EYE position on head bone (camera for fpv)
sets players EYE position on head bone ( camera for fpv )
//NOTE: angles in radians and negated 
