Tactics: Western Philosophers Vs. Musicians
0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
|
#include <CDVolume.h>
Public Member Functions | |
Shape (const float &boundingRadius_=0.0f) | |
virtual | ~Shape () |
virtual SHAPE_TYPE | getType () const =0 |
virtual float | getDist (const Math::Point<> &thisCenter_, const Math::Matrix3x3 &thisRot_, const Shape *otherShape_, const Math::Point<> &otherCenter_, const Math::Matrix3x3 &otherRot_) const |
virtual bool | getFirstIntersection (const Math::Point<> &thisCenter_, const Math::Matrix3x3 &thisRot_, const Math::Point<> &thisVel_, const Shape *otherShape_, const Math::Point<> &otherCenter_, const Math::Matrix3x3 &otherRot_, const Math::Point<> &otherVel_, HitInfo &hitInfo_) const |
virtual bool | getClosestRayIntersection (const Math::Point<> &thisCenter_, const Math::Matrix3x3 &thisRot_, const Math::Point<> &rayOrigin_, const Math::Point<> &rayDir_, Math::Point<> &hitPos_, float &t_, Math::Point<> &hitNormal_) const |
virtual void | scale (const Math::Point<> &factor_) |
Public Attributes | |
float | _boundingRadius |
Shape and its subclasses are 3D manifolds w/ out a transform. An undefined shape can still be used for collision detection purposes since a bounding radius is defined for all shapes in the CD namespace.
|
inline |
|
inlinevirtual |
|
virtual |
NOTE: For bounding spheres, if the ray starts inside the radius, then the hit position will be the ray origin, and the hit normal will be opposite the ray's direction, i.e., this is not considered to be a hollow shape.
t_ | = distance of ray intersection from ray origin |
|
virtual |
Reimplemented in OpenSkyNet::CD::Plane, and OpenSkyNet::CD::Box.
|
virtual |
Reimplemented in OpenSkyNet::CD::Box.
|
pure virtual |
Implemented in OpenSkyNet::CD::Plane, OpenSkyNet::CD::Box, and OpenSkyNet::CD::Sphere.
|
inlinevirtual |
Reimplemented in OpenSkyNet::CD::Box.
float OpenSkyNet::CD::Shape::_boundingRadius |