예제 #1
0
파일: CPed.cpp 프로젝트: vvc/mtasa-blue
void CPed::SetMatrix( const CMatrix& matrix )
{
    // Set position and rotation from matrix
    SetPosition( matrix.vPos );
    CVector vecRotation = matrix.GetRotation();
    SetRotation( vecRotation.fZ );
}
예제 #2
0
파일: CVehicle.cpp 프로젝트: vvc/mtasa-blue
void CVehicle::SetMatrix( const CMatrix& matrix )
{
    // Set position and rotation from matrix
    SetPosition( matrix.vPos );
    CVector vecRotation = matrix.GetRotation();
    ConvertRadiansToDegreesNoWrap( vecRotation );
    SetRotationDegrees( vecRotation );
}