Px3Player

Engine/source/T3D/physics/physx3/px3Player.h

More...

Protected Attributes

Used to get collision info out of the PxUserControllerHitReport callbacks.

physx::PxController *
physx::PxCapsuleGeometry

Protected Functions

_findContact(SceneObject ** contactObject, VectorF * contactNormal)
onControllerHit(const physx::PxControllersHit & hit)
onObstacleHit(const physx::PxControllerObstacleHit & )
onShapeHit(const physx::PxControllerShapeHit & 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 PxUserControllerHitReport callbacks.

physx::PxController * mController 
U32 mElapsed 
physx::PxCapsuleGeometry mGeometry 
SceneObject * mObject 
F32 mOriginOffset 
F32 mSkinWidth 
F32 mStepHeight 
Px3World * mWorld 

Protected Functions

_findContact(SceneObject ** contactObject, VectorF * contactNormal)

_onPhysicsReset(PhysicsResetEvent reset)

_onStaticChanged()

_releaseController()

onControllerHit(const physx::PxControllersHit & hit)

onObstacleHit(const physx::PxControllerObstacleHit & )

onShapeHit(const physx::PxControllerShapeHit & hit)

Public Functions

Px3Player()

~Px3Player()

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