BtPlayer

Engine/source/T3D/physics/bullet/btPlayer.h

More...

Protected Attributes

Protected Functions

_stepForward(btVector3 * inOutCurrPos, const btVector3 & displacement, CollisionList * outCol)
bool
_sweep(btVector3 * inOutCurrPos, const btVector3 & disp, CollisionList * outCol)

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

btConvexShape * mColShape 
btPairCachingGhostObject * mGhostObject 
SceneObject * mObject 
F32 mOriginOffset 
F32 mSlopeAngle 
F32 mStepHeight 
BtWorld * mWorld 

Protected Functions

_recoverFromPenetration()

_releaseController()

_stepForward(btVector3 * inOutCurrPos, const btVector3 & displacement, CollisionList * outCol)

_sweep(btVector3 * inOutCurrPos, const btVector3 & disp, CollisionList * outCol)

Public Functions

BtPlayer()

~BtPlayer()

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