PxPlaneGeometry

Defined in include/geometry/PxPlaneGeometry.h

class PxPlaneGeometry : public PxGeometry

Class describing a plane geometry.

The plane geometry specifies the half-space volume x<=0. As with other geometry types, when used in a PxShape the collision volume is obtained by transforming the halfspace by the shape local pose and the actor global pose.

To generate a PxPlane from a PxTransform, transform PxPlane(1,0,0,0).

To generate a PxTransform from a PxPlane, use PxTransformFromPlaneEquation.

See also

PxShape.setGeometry() PxShape.getPlaneGeometry() PxTransformFromPlaneEquation

Public Functions

inline PxPlaneGeometry()

Constructor.

inline PxPlaneGeometry(const PxPlaneGeometry &that)

Copy constructor.

Parameters

that[in] Other object

inline void operator=(const PxPlaneGeometry &that)

Assignment operator.

inline bool isValid() const

Returns true if the geometry is valid.

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

float mTypePadding

Protected Attributes

PxGeometryType::Enum mType