Voxellancer
0.3
A game about voxels in space
|
#include <hardpointaimhelper.h>
Public Member Functions | |
HardpointAimHelper (Hardpoint *hardpoint, WorldObject *targetObject) | |
void | aim () |
bool | isHitable () |
const glm::vec3 & | direction () |
const glm::vec3 & | point () |
Protected Member Functions | |
float | bulletTravelTime (const glm::vec3 &point) |
glm::vec3 | targetPositionIn (float deltaSec) |
float | bulletSpeedInDirection (const glm::vec3 &direction) |
Protected Attributes | |
Hardpoint * | m_hardpoint |
WorldObject * | m_targetObject |
bool | m_aimed |
glm::vec3 | m_hardpointPosition |
glm::vec3 | m_targetPosition |
glm::vec3 | m_targetSpeed |
float | m_bulletSpeed |
float | m_bulletLifetime |
bool | m_hitable |
glm::vec3 | m_direction |
glm::vec3 | m_point |
Identifies the direction a hardpoint must shoot to hit a moving WorldObject given the direction and the speed of this other WorldObject doesn't change too much