cPadmap Class Reference

Inheritance diagram for cPadmap:
cObject

List of all members.

Public Types

enum  Kinds {
  KIND_CONCRETE, KIND_ROAD_EASTWEST, KIND_ROAD_NORTHSOUTH, KIND_ROAD_JUNKTION,
  MAX_KINDS
}
 

Possible models of tile.


Public Member Functions

 cPadmap (float x, float z)
virtual float constrainParticle (float *worldpos, float radius=0.0f, float *localpos=NULL, cObject *enactor=NULL)
virtual void drawSolid ()
 Render solid non-translucent parts of the object.

Protected Attributes

int dims [2]
float heights [16 *16]

Static Protected Attributes

static int sInstances = 0
 Counts number of instances.
static std::map< int, long > sTextures
 Contains shared texture(s) of all instances.
static std::vector< int > sSpiral [2]

Member Function Documentation

float cPadmap::constrainParticle ( float *  worldpos,
float  radius = 0.0f,
float *  localpos = NULL,
cObject enactor = NULL 
) [virtual]

Constrain the given world position particle (with radius) to the object boundary hull ie. place the worldpos to the nearest boundary hull position if the worldpos is inside the object's hull. localpos delivers in case of impact the local position relative to the object of the corrected worldpos. input location vector in world coordinates. radius of the checked particle in world dimensions. output adjusted location vector.

Returns:
the intrusion depth.

Reimplemented from cObject.


The documentation for this class was generated from the following files:
Generated on Fri Aug 27 16:01:36 2010 for Linwarrior 3D by  doxygen 1.6.3