This class represent a generic game object, with its speed, position etc
This class represent a generic game object, with its speed, position etc.. This class is the base class that is used to derive all the objects represented in the game: asteroids, ships bullets explosion and so on. Each GameObj has a specific position in the game space, a velocity vector, a heading (direction) angle (that can be obviously different from the velocity direction), a main rotation axis and an angular speed (think of asteroids inertia).Version History
- 0.1 First Release.
- 0.3 Added Bounding Sphere B for collision detection management and Collide() function; This function is called in the GameSession class.
GameObj(const Point3f &_p, const float _angle)
GameObj(const Point3f &_p, const float _angle, const Point3f &_v)
Point3f p
Point3f axis
float angle
Point3f v
float av
bool active
Sphere3f B
void Draw()
void Update(int t)
Point3f VDir()
bool Collide(GameObj *o)
void DrawBound()
Alphabetic index HTML hierarchy of classes or Java