Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
Physics Class Reference
Collaboration diagram for Physics:
[legend]

Public Member Functions

 Physics (WorldObject &worldObject, float scale)
 
float directionalDampening () const
 
void setDirectionalDampening (const Property< float > &directionalDampening)
 
float angularDampening () const
 
void setAngularDampening (const Property< float > &angularDampening)
 
const Speedspeed () const
 
void setSpeed (const Speed &speed)
 
const Accelerationacceleration () const
 
void setAcceleration (const Acceleration &acceleration)
 
float mass () const
 
float maxMass () const
 
const Transform projectedTransformIn (float deltaSec)
 
std::list< VoxelCollision > & move (float deltaSec)
 
void addVoxel (Voxel *voxel)
 
void removeVoxel (Voxel *voxel)
 

Protected Member Functions

void voxelChanged (Voxel *voxel, bool isAdd)
 
virtual void updateSpeed (float deltaSec)
 

Protected Attributes

WorldObjectm_worldObject
 
Speed m_speed
 
Acceleration m_acceleration
 
Property< float > m_directionalDampening
 
Property< float > m_angularDampening
 
float m_mass
 
float m_maxMass
 
glm::vec3 m_accumulatedMassVec
 
float m_massScaleFactor
 

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