better physics
This commit is contained in:
@@ -20,10 +20,18 @@ void CBaseEntity::Precache()
|
||||
|
||||
void CBaseEntity::Spawn()
|
||||
{
|
||||
Precache();
|
||||
Precache();
|
||||
SetAbsOrigin({0, 0, 0});
|
||||
SetAbsQAngles(0, 0, 0);
|
||||
SetScale(1);
|
||||
}
|
||||
|
||||
void CBaseEntity::SetAbsAngles( float fPitch, float fYaw, float fRoll )
|
||||
void CBaseEntity::SetAbsAngles( Quat vQuat )
|
||||
{
|
||||
m_vRotation = vQuat;
|
||||
}
|
||||
|
||||
void CBaseEntity::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