Voxellancer
0.3
A game about voxels in space
|
Public Member Functions | |
CollisionDetector (WorldObject &worldObject) | |
void | addVoxel (Voxel *voxel) |
void | removeVoxel (Voxel *voxel) |
std::list< VoxelCollision > & | checkCollisions () |
std::list< VoxelCollision > & | lastCollisions () |
void | reset () |
WorldTreeGeode * | geode () |
void | setGeode (WorldTreeGeode *geode) |
void | setWorldTree (WorldTree *worldTree) |
WorldTree * | worldTree () |
VoxelTree & | voxelTree () |
void | updateGeode () |
Protected Member Functions | |
void | checkCollisions (VoxelTreeNode *nodeA, VoxelTreeNode *nodeB) |
const Sphere & | getOrCreateSphere (VoxelTreeNode *node) |
Protected Attributes | |
std::unique_ptr< VoxelTree > | m_voxelTree |
WorldObject & | m_worldObject |
WorldTreeGeode * | m_geode |
WorldTree * | m_worldTree |
std::list< VoxelCollision > | m_collisions |