PhysicsObject
Engine/source/T3D/physics/physicsObject.h
Protected Attributes
The last queued callback event.
The user data object assigned to this object.
Public Functions
MatrixF &
getTransform(MatrixF * outMatrix)
Returns the transform of the physics body at the last processed simulation tick.
getWorld()
Returns the physics world this object is a member of.
Returns the world aligned bounding box containing the PhysicsObject.
bool
queueCallback(U32 ms, Delegate< void()> callback)
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.
Protected Functions
You shouldn't be creating this object directly.
Detailed Description
Protected Attributes
U32 mQueuedEvent
The last queued callback event.
PhysicsUserData mUserData
The user data object assigned to this object.
Public Functions
~PhysicsObject()
getTransform(MatrixF * outMatrix)
Returns the transform of the physics body at the last processed simulation tick.
Reimplemented by: BtBody, BtPlayer, Px3Body, Px3Player
getUserData()
getUserData()
getWorld()
Returns the physics world this object is a member of.
Reimplemented by: BtBody, BtPlayer, Px3Body, Px3Player
getWorldBounds()
Returns the world aligned bounding box containing the PhysicsObject.
Reimplemented by: BtBody, BtPlayer, Px3Body, Px3Player
isSimulationEnabled()
Reimplemented by: BtBody, BtPlayer, Px3Body, Px3Player
queueCallback(U32 ms, Delegate< void()> callback)
setSimulationEnabled(bool enabled)
Set false to skip simulation of this object or temporarily remove it from the physics simulation.
Implementation is PhysicsPlugin specific.
Reimplemented by: BtBody, BtPlayer, Px3Body, Px3Player
setTransform(const MatrixF & transform)
Sets the transform on the physics object.
For static objects this is only intended to be used for for infrequent changes when editing the mission.