PxCustomGeometryExt
Defined in include/extensions/PxCustomGeometryExt.h
Structs
ConeCallbacks: Cone geometry callbacks.
CylinderCallbacks: Cylinder geometry callbacks.
-
class PxCustomGeometryExt
Pre-made custom geometry callbacks implementations.
-
struct ConeCallbacks : public BaseConvexCallbacks
Cone geometry callbacks.
Public Functions
-
ConeCallbacks(float height, float radius, int axis = 0, float margin = 0)
Construct cone geometry callbacks object.
- Parameters
height – [in] The cylinder height.
radius – [in] The cylinder radius.
axis – [in] The cylinder axis (0 - X, 1 - Y, 2 - Z).
margin – [in] The cylinder margin.
-
void setHeight(float h)
Set cone height.
- Parameters
h – [in] The cone height
-
inline float getHeight() const
Get cone height.
- Returns
The cone height
-
void setRadius(float r)
Set cone radius.
- Parameters
r – [in] The cone radius
-
inline float getRadius() const
Get cone radius.
- Returns
The cone radius
-
void setAxis(int a)
Set cone axis.
- Parameters
a – [in] The cone axis
-
inline int getAxis() const
Get cone axis.
- Returns
The cone axis
-
ConeCallbacks(float height, float radius, int axis = 0, float margin = 0)
-
struct CylinderCallbacks : public BaseConvexCallbacks
Cylinder geometry callbacks.
Public Functions
-
CylinderCallbacks(float height, float radius, int axis = 0, float margin = 0)
Construct cylinder geometry callbacks object.
- Parameters
height – [in] The cylinder height.
radius – [in] The cylinder radius.
axis – [in] The cylinder axis (0 - X, 1 - Y, 2 - Z).
margin – [in] The cylinder margin.
-
void setHeight(float h)
Set cylinder height.
- Parameters
h – [in] The cylinder height
-
inline float getHeight() const
Get cylinder height.
- Returns
The cylinder height
-
void setRadius(float r)
Set cylinder radius.
- Parameters
r – [in] The cylinder radius.
-
inline float getRadius() const
Get cylinder radius.
- Returns
The cylinder radius
-
void setAxis(int a)
Set cylinder axis.
- Parameters
a – [in] The cylinder axis (0 - X, 1 - Y, 2 - Z).
-
inline int getAxis() const
Get cylinder axis.
- Returns
The cylinder axis
-
CylinderCallbacks(float height, float radius, int axis = 0, float margin = 0)
-
struct ConeCallbacks : public BaseConvexCallbacks