PxSphereGeometry#

Defined in include/geometry/PxSphereGeometry.h

class PxSphereGeometry : public PxGeometry#

A class representing the geometry of a sphere.

Spheres are defined by their radius.

Note

The scaling of the sphere is expected to be baked into this value, there is no additional scaling parameter.

Public Functions

inline PxSphereGeometry(PxReal ir = 0.0f)#

Constructor.

inline PxSphereGeometry(const PxSphereGeometry &that)#

Copy constructor.

Parameters:

that[in] Other object

inline void operator=(const PxSphereGeometry &that)#

Assignment operator.

inline bool isValid() const#

Returns true if the geometry is valid.

Note

A valid sphere has radius > 0.

It is illegal to call

PxPhysics::createShape with a sphere that has zero radius.

Returns:

True if the current settings are valid

inline PxGeometryType::Enum getType() const#

Returns the type of the geometry.

Returns:

The type of the object.

Public Members

PxReal radius#

The radius of the sphere.

float mTypePadding#

Protected Attributes

PxGeometryType::Enum mType#