PxPlayer

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

More...

Protected Attributes

Used to get collision info out of the NxUserControllerHitReport callbacks.

NxController *

Protected Functions

_findContact(SceneObject ** contactObject, VectorF * contactNormal)
NxControllerAction
onControllerHit(const NxControllersHit & hit)
NxControllerAction
onShapeHit(const NxControllerShapeHit & hit)

Public Functions

findContact(SceneObject ** contactObject, VectorF * contactNormal, Vector< SceneObject * > * outOverlapObjects)
getTransform(MatrixF * outMatrix)

Returns the transform of the physics body at the last processed simulation tick.

Returns the physics world this object is a member of.

Returns the world aligned bounding box containing the PhysicsObject.

init(const char * type, const Point3F & size, F32 runSurfaceCos, F32 stepHeight, SceneObject * obj, PhysicsWorld * world)
move(const VectorF & displacement, CollisionList & outCol)
setSimulationEnabled(bool enabled)

Set false to skip simulation of this object or temporarily remove it from the physics simulation.

setTransform(const MatrixF & transform)

Sets the transform on the physics object.

bool

Detailed Description

Protected Attributes

CollisionList * mCollisionList 

Used to get collision info out of the NxUserControllerHitReport callbacks.

NxController * mController 
SceneObject * mObject 
F32 mOriginOffset 
F32 mSkinWidth 
F32 mStepHeight 
PxWorld * mWorld 

Protected Functions

_findContact(SceneObject ** contactObject, VectorF * contactNormal)

_onPhysicsReset(PhysicsResetEvent reset)

_onStaticChanged()

_releaseController()

onControllerHit(const NxControllersHit & hit)

onShapeHit(const NxControllerShapeHit & hit)

Public Functions

PxPlayer()

~PxPlayer()

disableCollision()

Reimplemented from: PhysicsPlayer

enableCollision()

Reimplemented from: PhysicsPlayer

findContact(SceneObject ** contactObject, VectorF * contactNormal, Vector< SceneObject * > * outOverlapObjects)

Reimplemented from: PhysicsPlayer

getTransform(MatrixF * outMatrix)

Reimplemented from: PhysicsObject

getWorld()

Reimplemented from: PhysicsObject

getWorldBounds()

Reimplemented from: PhysicsObject

init(const char * type, const Point3F & size, F32 runSurfaceCos, F32 stepHeight, SceneObject * obj, PhysicsWorld * world)

Reimplemented from: PhysicsPlayer

isSimulationEnabled()

Reimplemented from: PhysicsObject

move(const VectorF & displacement, CollisionList & outCol)

Reimplemented from: PhysicsPlayer

setScale(const Point3F & scale)

setSimulationEnabled(bool enabled)

Reimplemented from: PhysicsObject

setSpacials(const Point3F & nPos, const Point3F & nSize)

Reimplemented from: PhysicsPlayer

setTransform(const MatrixF & transform)

Reimplemented from: PhysicsObject

testSpacials(const Point3F & nPos, const Point3F & nSize)

Reimplemented from: PhysicsPlayer