PxCollision

Engine/source/T3D/physics/physx/pxCollision.h

More...

Protected Attributes

Vector< NxShapeDesc * >

The collision representation.

Public Functions

Helper for adding shapes.

addBox(const Point3F & halfWidth, const MatrixF & localXfm)

Add a box to the collision shape.

addCapsule(F32 radius, F32 height, const MatrixF & localXfm)

Add a Y axis capsule to the collision shape.

bool
addConvex(const Point3F * points, U32 count, const MatrixF & localXfm)

Add a point cloud convex hull to the collision shape.

bool
addHeightfield(const U16 * heights, const bool * holes, U32 blockSize, F32 metersPerSample, const MatrixF & localXfm)

Add a heightfield to the collision shape.

Add an infinite plane to the collision shape.

addSphere(F32 radius, const MatrixF & localXfm)

Add a sphere to the collision shape.

bool
addTriangleMesh(const Point3F * vert, U32 vertCount, const U32 * index, U32 triCount, const MatrixF & localXfm)

Add a triangle mesh to the collision shape.

const Vector< NxShapeDesc * > &

Return the PhysX shape descriptions.

Detailed Description

Protected Attributes

Vector< NxShapeDesc * > mColShapes 

The collision representation.

Public Functions

PxCollision()

Helper for adding shapes.

~PxCollision()

addBox(const Point3F & halfWidth, const MatrixF & localXfm)

Reimplemented from: PhysicsCollision

addCapsule(F32 radius, F32 height, const MatrixF & localXfm)

Reimplemented from: PhysicsCollision

addConvex(const Point3F * points, U32 count, const MatrixF & localXfm)

Reimplemented from: PhysicsCollision

addHeightfield(const U16 * heights, const bool * holes, U32 blockSize, F32 metersPerSample, const MatrixF & localXfm)

Reimplemented from: PhysicsCollision

addPlane(const PlaneF & plane)

Reimplemented from: PhysicsCollision

addSphere(F32 radius, const MatrixF & localXfm)

Reimplemented from: PhysicsCollision

addTriangleMesh(const Point3F * vert, U32 vertCount, const U32 * index, U32 triCount, const MatrixF & localXfm)

Reimplemented from: PhysicsCollision

getShapes()

Return the PhysX shape descriptions.