Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
HardpointAimHelper Class Reference

#include <hardpointaimhelper.h>

Collaboration diagram for HardpointAimHelper:
[legend]

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

Hardpointm_hardpoint
 
WorldObjectm_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
 

Detailed Description

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


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