Class representing the geometry of a box. More...
#include <PxBoxGeometry.h>
Public Member Functions | |
PX_INLINE | PxBoxGeometry () |
Default constructor, initializes to a box with zero dimensions. More... | |
PX_INLINE | PxBoxGeometry (PxReal hx, PxReal hy, PxReal hz) |
Constructor to initialize half extents from scalar parameters. More... | |
PX_INLINE | PxBoxGeometry (PxVec3 halfExtents_) |
Constructor to initialize half extents from vector parameter. More... | |
PX_INLINE bool | isValid () const |
Returns true if the geometry is valid. More... | |
Public Member Functions inherited from PxGeometry | |
PX_CUDA_CALLABLE PX_FORCE_INLINE PxGeometryType::Enum | getType () const |
Returns the type of the geometry. More... | |
Public Attributes | |
PxVec3 | halfExtents |
Half of the width, height, and depth of the box. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from PxGeometry | |
PX_CUDA_CALLABLE PX_FORCE_INLINE | PxGeometry (PxGeometryType::Enum type) |
Protected Attributes inherited from PxGeometry | |
PxGeometryType::Enum | mType |
Class representing the geometry of a box.
The geometry of a box can be fully specified by its half extents. This is the half of its width, height, and depth.
|
inline |
Default constructor, initializes to a box with zero dimensions.
|
inline |
Constructor to initialize half extents from scalar parameters.
hx | Initial half extents' x component. |
hy | Initial half extents' y component. |
hz | Initial half extents' z component. |
Constructor to initialize half extents from vector parameter.
halfExtents_ | Initial half extents. |
PxVec3 PxBoxGeometry::halfExtents |
Half of the width, height, and depth of the box.
Referenced by PxMassProperties::PxMassProperties().