29#ifndef PX_CUSTOM_GEOMETRY_EXT_H
30#define PX_CUSTOM_GEOMETRY_EXT_H
35#include <geometry/PxCustomGeometry.h>
36#include <geometry/PxGjkQuery.h>
44class PxMassProperties;
45class PxGeometryHolder;
60 BaseConvexCallbacks(
float _margin) : margin(_margin) {}
65 const PxReal contactDistance,
const PxReal meshContactMargin,
const PxReal toleranceLength,
70 virtual bool sweep(
const PxVec3& unitDir,
const PxReal maxDist,
73 virtual bool usePersistentContactManifold(
const PxGeometry& geometry, PxReal& breakingThreshold)
const;
76 virtual PxReal getMargin()
const {
return margin; }
122 float getRadiusAtHeight(
float height)
const;
163 float getRadiusAtHeight(
float height)
const;
Class representing 3D range or axis aligned bounding box.
Definition PxBounds3.h:58
Pre-made custom geometry callbacks implementations.
Definition PxCustomGeometryExt.h:52
Geometry holder class.
Definition PxGeometryHelpers.h:66
A geometry object.
Definition PxGeometry.h:79
Utility class to compute and manipulate mass and inertia tensor properties.
Definition PxMassProperties.h:65
Definition PxRenderOutput.h:50
3 Element vector class.
Definition PxVec3.h:50
#define DECLARE_CUSTOM_GEOMETRY_TYPE
Used in pair with IMPLEMENT_CUSTOM_GEOMETRY_TYPE to overwrite Callbacks::getCustomType() callback.
Definition PxCustomGeometry.h:291
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Cone geometry callbacks.
Definition PxCustomGeometryExt.h:130
float height
Cone height.
Definition PxCustomGeometryExt.h:132
int axis
Cone axis.
Definition PxCustomGeometryExt.h:136
float radius
Cone radius.
Definition PxCustomGeometryExt.h:134
Cylinder geometry callbacks.
Definition PxCustomGeometryExt.h:89
float height
Cylinder height.
Definition PxCustomGeometryExt.h:91
int axis
Cylinder axis.
Definition PxCustomGeometryExt.h:95
float radius
Cylinder radius.
Definition PxCustomGeometryExt.h:93
Custom geometry callbacks structure. User should inherit this and implement all pure virtual function...
Definition PxCustomGeometry.h:102
Stores results of raycast queries.
Definition PxGeometryHit.h:151
Stores results of sweep queries.
Definition PxGeometryHit.h:175
Abstract interface for a user defined shape GJK mapping support. A user defined shape consists of a c...
Definition PxGjkQuery.h:55
A per-thread context passed to low-level query functions.
Definition PxGeometryQueryContext.h:52