Libprimis
Imprimis' 3D destroyable world engine
|
A base object representing a class. More...
#include <ents.h>
Public Types | |
enum | { PhysEnt_Player = 0 , PhysEnt_Camera , PhysEnt_Bounce } |
Public Member Functions | |
void | resetinterp () |
void | reset () |
vec | feetpos (float offset=0) const |
vec | headpos (float offset=0) const |
bool | crouched () const |
Public Attributes | |
vec | o |
vec | vel |
vec | falling |
vec | deltapos |
vec | newpos |
float | yaw |
float | pitch |
float | roll |
float | maxspeed |
int | timeinair |
float | radius |
float | eyeheight |
float | maxheight |
float | aboveeye |
float | xradius |
float | yradius |
float | zmargin |
vec | floor |
int | inwater |
bool | jumping |
char | move |
char | strafe |
char | crouching |
uchar | physstate |
uchar | state |
uchar | editstate |
uchar | type |
uchar | collidetype |
bool | blocked |
A base object representing a class.
Intended to be specialized for game specific functionality.
float physent::aboveeye |
bounding box size
bool physent::blocked |
used by physics to signal ai
uchar physent::collidetype |
one of COLLIDE_* above
uchar physent::editstate |
one of CS_* above
vec physent::falling |
origin, velocity
vec physent::floor |
the normal of floor the dynent is on
float physent::maxspeed |
cubes per second, 50 for player
vec physent::newpos |
movement interpolation
uchar physent::physstate |
one of PHYS_* above
uchar physent::type |
one of PhysEnt_* above