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

Public Member Functions

 CollisionDetector (WorldObject &worldObject)
 
void addVoxel (Voxel *voxel)
 
void removeVoxel (Voxel *voxel)
 
std::list< VoxelCollision > & checkCollisions ()
 
std::list< VoxelCollision > & lastCollisions ()
 
void reset ()
 
WorldTreeGeodegeode ()
 
void setGeode (WorldTreeGeode *geode)
 
void setWorldTree (WorldTree *worldTree)
 
WorldTreeworldTree ()
 
VoxelTreevoxelTree ()
 
void updateGeode ()
 

Protected Member Functions

void checkCollisions (VoxelTreeNode *nodeA, VoxelTreeNode *nodeB)
 
const SpheregetOrCreateSphere (VoxelTreeNode *node)
 

Protected Attributes

std::unique_ptr< VoxelTreem_voxelTree
 
WorldObjectm_worldObject
 
WorldTreeGeodem_geode
 
WorldTreem_worldTree
 
std::list< VoxelCollisionm_collisions
 

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