added keybinds
This commit is contained in:
@@ -15,8 +15,31 @@ void CPhysicsProp::Spawn()
|
||||
|
||||
void CPhysicsProp::Think( float fDelta )
|
||||
{
|
||||
SetAbsOrigin(m_pBody->GetPosition());
|
||||
SetAbsAngles(m_pBody->GetRotation());
|
||||
BaseClass::SetAbsOrigin(m_pBody->GetPosition());
|
||||
BaseClass::SetAbsAngles(m_pBody->GetRotation());
|
||||
}
|
||||
|
||||
void CPhysicsProp::SetAbsAngles( Quat vQuat )
|
||||
{
|
||||
|
||||
BaseClass::SetAbsAngles( vQuat );
|
||||
if (m_pBody)
|
||||
m_pBody->SetRotation(m_pBody->GetRotation());
|
||||
}
|
||||
|
||||
void CPhysicsProp::SetAbsQAngles( float fPitch, float fYaw, float fRoll )
|
||||
{
|
||||
|
||||
BaseClass::SetAbsQAngles( fPitch, fYaw, fRoll);
|
||||
if (m_pBody)
|
||||
m_pBody->SetRotation(m_pBody->GetRotation());
|
||||
}
|
||||
|
||||
void CPhysicsProp::SetAbsOrigin( Vector origin )
|
||||
{
|
||||
BaseClass::SetAbsOrigin( origin );
|
||||
if (m_pBody)
|
||||
m_pBody->SetPosition(m_pBody->GetPosition());
|
||||
}
|
||||
|
||||
void CPhysicsProp::SetModel( const char *szName )
|
||||
|
||||
Reference in New Issue
Block a user