better physics

This commit is contained in:
2026-03-05 00:30:27 +02:00
parent ddbdef713b
commit 2da75ebdd8
68 changed files with 743 additions and 262450 deletions

View File

@@ -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);