home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 March
/
Gamestar_82_2006-03_dvd.iso
/
DVDStar
/
Editace
/
quake4_sdkv10.exe
/
source
/
game
/
physics
/
Physics.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2005-11-14
|
956b
|
57 lines
#include "../../idlib/precompiled.h"
#pragma hdrstop
#include "../Game_local.h"
ABSTRACT_DECLARATION( idClass, idPhysics )
END_CLASS
/*
================
idPhysics::~idPhysics
================
*/
idPhysics::~idPhysics( void ) {
}
/*
================
idPhysics::Save
================
*/
void idPhysics::Save( idSaveGame *savefile ) const {
}
/*
================
idPhysics::Restore
================
*/
void idPhysics::Restore( idRestoreGame *savefile ) {
}
/*
================
idPhysics::SetClipBox
================
*/
void idPhysics::SetClipBox( const idBounds &bounds, float density ) {
SetClipModel( new idClipModel( idTraceModel( bounds ) ), density );
}
/*
================
idPhysics::SnapTimeToPhysicsFrame
================
*/
int idPhysics::SnapTimeToPhysicsFrame( int t ) {
int s;
// RAVEN BEGIN
// bdube: use GetMSec access rather than USERCMD_TIME
s = t + gameLocal.GetMSec() - 1;
return ( s - s % gameLocal.GetMSec() );
// RAVEN END
}