better physics
This commit is contained in:
@@ -22,11 +22,16 @@ void C_BaseEntity::Spawn()
|
||||
{
|
||||
Precache();
|
||||
SetAbsOrigin({0, 0, 0});
|
||||
SetAbsAngles(0, 0, 0);
|
||||
SetAbsQAngles(0, 0, 0);
|
||||
SetScale(1);
|
||||
}
|
||||
|
||||
void C_BaseEntity::SetAbsAngles( float fPitch, float fYaw, float fRoll )
|
||||
void C_BaseEntity::SetAbsAngles( Quat vQuat )
|
||||
{
|
||||
m_vRotation = vQuat;
|
||||
}
|
||||
|
||||
void C_BaseEntity::SetAbsQAngles( float fPitch, float fYaw, float fRoll )
|
||||
{
|
||||
versor q;
|
||||
glm_euler_yzx_quat((vec3){fPitch, fYaw, fRoll}, q);
|
||||
|
||||
Reference in New Issue
Block a user