Libprimis
Imprimis' 3D destroyable world engine
Loading...
Searching...
No Matches
physent Struct Reference

A base object representing a class. More...

#include <ents.h>

Inheritance diagram for physent:
dynent

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
 

Detailed Description

A base object representing a class.

Intended to be specialized for game specific functionality.

Member Data Documentation

◆ aboveeye

float physent::aboveeye

bounding box size

◆ blocked

bool physent::blocked

used by physics to signal ai

◆ collidetype

uchar physent::collidetype

one of COLLIDE_* above

◆ editstate

uchar physent::editstate

one of CS_* above

◆ falling

vec physent::falling

origin, velocity

◆ floor

vec physent::floor

the normal of floor the dynent is on

◆ maxspeed

float physent::maxspeed

cubes per second, 50 for player

◆ newpos

vec physent::newpos

movement interpolation

◆ physstate

uchar physent::physstate

one of PHYS_* above

◆ type

uchar physent::type

one of PhysEnt_* above


The documentation for this struct was generated from the following file: