Collision test with a sphere. More...
#include <sphere_collision_test.h>
Public Member Functions | |
SphereCollisionTest () | |
const float * | sphereCenter () const |
void | setSphereCenter (float x, float y, float z) |
float | sphereRadius () const |
void | setSphereRadius (float radius) |
![]() | |
BaseCollisionTest () | |
~BaseCollisionTest () | |
bool | collides () const |
Collision result, returns true if a collision was detected. More... | |
const float * | modelTriangle () const |
The triangle that collided (belongs to this model) More... | |
int | triangleId () const |
The index of the triangle that collided (belongs to this model) More... | |
const float * | point () const |
The detected collision point (array of 3 items containing x,y,z coords) More... | |
Additional Inherited Members | |
![]() | |
float * | mutablePoint () |
Collision test with a sphere.
Definition at line 9 of file sphere_collision_test.h.
Claudette::SphereCollisionTest::SphereCollisionTest | ( | ) |
void Claudette::SphereCollisionTest::setSphereCenter | ( | float | x, |
float | y, | ||
float | z | ||
) |
void Claudette::SphereCollisionTest::setSphereRadius | ( | float | radius | ) |
const float* Claudette::SphereCollisionTest::sphereCenter | ( | ) | const |
float Claudette::SphereCollisionTest::sphereRadius | ( | ) | const |