#include <palGeometry.h>
Public Member Functions | |
virtual void | Init (palMatrix4x4 &pos, Float radius, Float mass) |
Protected Member Functions | |
virtual Float * | GenerateMesh_Vertices () |
virtual int * | GenerateMesh_Indices () |
int * palSphereGeometry::GenerateMesh_Indices | ( | ) | [protected, virtual] |
Generates a set of corresponding indicies to represent the approximation to the geometry.
Reimplemented from palGeometry.
Float * palSphereGeometry::GenerateMesh_Vertices | ( | ) | [protected, virtual] |
Generates a set of vertices that represent an approximation to the geometry. This can be used for debug rendering, or generating the mesh for a convex object representation for some physics engines
Reimplemented from palGeometry.
void palSphereGeometry::Init | ( | palMatrix4x4 & | pos, | |
Float | radius, | |||
Float | mass | |||
) | [virtual] |
Initializes the sphere
pos | The transformation matrix representing the position and orientation of the sphere | |
radius | The sphere's radius | |
mass | The sphere's mass |