PxControllerShapeHit#

Defined in include/characterkinematic/PxController.h

struct PxControllerShapeHit : public PxControllerHit#

Describes a hit between a CCT and a shape.

Passed to onShapeHit()

Public Members

PxShape *shape#

Touched shape.

PxRigidActor *actor#

Touched actor.

PxU32 triangleIndex#

touched triangle index (only for meshes/heightfields)

PxController *controller#

Current controller.

PxExtendedVec3 worldPos#

Contact position in world space.

PxVec3 worldNormal#

Contact normal in world space.

PxVec3 dir#

Motion direction.

PxF32 length#

Motion length.