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(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.
See also
PxRigidActor::createShape, PxPhysics::createShape
Note
A valid sphere has radius > 0.
It is illegal to call PxRigidActor::createShape and
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.
Protected Attributes
-
PxGeometryType::Enum mType
-
inline PxSphereGeometry(const PxSphereGeometry &that)