le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
Public Member Functions | Public Attributes | List of all members
LeSolid Class Reference

#include <solid.h>

Public Member Functions

 LeSolid ()
 
 ~LeSolid ()
 
void init (const LeVertex &pos)
 
void stop ()
 
void configure (float mass, float radius)
 
void glueMoveAxis (LeVertex axis)
 
void glueRotateAxis (LeVertex axis)
 
void collideSolid (LeVertex contact, LeSolid &collider)
 
void collideHard (LeVertex contact, LeVertex normal, float rigidity)
 
void applyFriction (LeVertex normal, float friction)
 
void applyForce (LeVertex force)
 
void applyForceRight (float force)
 
void applyForceUp (float force)
 
void applyForceBack (float force)
 
void applyTorque (LeVertex torque)
 
void applyTorqueRight (float torque)
 
void applyTorqueUp (float torque)
 
void applyTorqueBack (float torque)
 
void applyForcePoint (LeVertex point, LeVertex force)
 
void applyTorquePoint (LeVertex point, LeVertex torque)
 
void update (float dt)
 

Public Attributes

float adhesion
 
float rigidity
 
float gravity
 
float groundLevel
 
float groundFriction
 
LE_SOLID_SYSTEM fluidSystem
 
LeVertex fluid1Move
 
LeVertex fluid1Rotate
 
LeVertex fluid2Move
 
LeVertex fluid2Rotate
 
LeVertex glueMove
 
LeVertex glueRotate
 
LeVertex pos
 
LeVertex posSpeed
 
LeVertex posAccel
 
LeVertex rot
 
LeVertex rotSpeed
 
LeVertex rotAccel
 
LeVertex rightVector
 
LeVertex upVector
 
LeVertex backVector
 

Constructor & Destructor Documentation

LeSolid::LeSolid ( )
LeSolid::~LeSolid ( )

Member Function Documentation

void LeSolid::applyForce ( LeVertex  force)
void LeSolid::applyForceBack ( float  force)
void LeSolid::applyForcePoint ( LeVertex  point,
LeVertex  force 
)
void LeSolid::applyForceRight ( float  force)
void LeSolid::applyForceUp ( float  force)
void LeSolid::applyFriction ( LeVertex  normal,
float  friction 
)
void LeSolid::applyTorque ( LeVertex  torque)
void LeSolid::applyTorqueBack ( float  torque)
void LeSolid::applyTorquePoint ( LeVertex  point,
LeVertex  torque 
)
void LeSolid::applyTorqueRight ( float  torque)
void LeSolid::applyTorqueUp ( float  torque)
void LeSolid::collideHard ( LeVertex  contact,
LeVertex  normal,
float  rigidity 
)

Apply force on self

void LeSolid::collideSolid ( LeVertex  contact,
LeSolid collider 
)
void LeSolid::configure ( float  mass,
float  radius 
)
void LeSolid::glueMoveAxis ( LeVertex  axis)
void LeSolid::glueRotateAxis ( LeVertex  axis)
void LeSolid::init ( const LeVertex pos)
void LeSolid::stop ( )
void LeSolid::update ( float  dt)

Member Data Documentation

float LeSolid::adhesion
LeVertex LeSolid::backVector
LeVertex LeSolid::fluid1Move
LeVertex LeSolid::fluid1Rotate
LeVertex LeSolid::fluid2Move
LeVertex LeSolid::fluid2Rotate
LE_SOLID_SYSTEM LeSolid::fluidSystem
LeVertex LeSolid::glueMove
LeVertex LeSolid::glueRotate
float LeSolid::gravity
float LeSolid::groundFriction
float LeSolid::groundLevel
LeVertex LeSolid::pos
LeVertex LeSolid::posAccel
LeVertex LeSolid::posSpeed
LeVertex LeSolid::rightVector
float LeSolid::rigidity
LeVertex LeSolid::rot
LeVertex LeSolid::rotAccel
LeVertex LeSolid::rotSpeed
LeVertex LeSolid::upVector

The documentation for this class was generated from the following files: