This implements a solid roughly in cylindrical shape. More...
Public Member Functions | |
CollisionTube (Point3 const a, Point3 const db, float radius) | |
CollisionTube (float ax, float ay, float az, float bx, float by, float bz, float radius) | |
Point3 const | getPointA () |
Point3 const | getPointB () |
float | getRadius () |
setPointA (Point3 const a) | |
setPointA (float x, float y, float z) | |
setPointB (Point3 const b) | |
setPointB (float x, float y, float z) | |
setRadius (float radius) | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
This implements a solid roughly in cylindrical shape.
It's not called a CollisionCylinder because it's not a true cylinder; specifically, it has rounded ends instead of flat ends. It looks more like a Contac pill.
CollisionTube | ( | Point3 const | a, |
Point3 const | db, | ||
float | radius | ||
) |
CollisionTube | ( | float | ax, |
float | ay, | ||
float | az, | ||
float | bx, | ||
float | by, | ||
float | bz, | ||
float | radius | ||
) |
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from CollisionSolid.
float getRadius | ( | ) |
setPointA | ( | float | x, |
float | y, | ||
float | z | ||
) |
setPointB | ( | float | x, |
float | y, | ||
float | z | ||
) |
setRadius | ( | float | radius | ) |