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

Public Member Functions

 Aimer (WorldObject *worldObject)
 
void update (float deltaSec)
 
glm::vec3 aim (const Ray &ray)
 
void setWorldObject (WorldObject *worldObject)
 

Protected Member Functions

glm::vec3 nearestTarget (const std::unordered_set< Voxel * > &voxels, const glm::vec3 &origin) const
 
float distanceTo (Voxel *voxel, const glm::vec3 &origin) const
 
glm::vec3 infinity (const Ray &ray) const
 

Protected Attributes

WorldObjectm_worldObject
 
Property< float > m_infityAimDistance
 
Property< float > m_infityAimInterpolation
 
float m_lastDistance
 

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