Torque3D Documentation / _generateds / ScriptTickObject

ScriptTickObject

Engine/source/console/scriptObjects.h

More...

Private Types

Parent 

Protected Attributes

Public Functions

advanceTime(F32 timeDelta)

This method is called once every frame regardless of the return value of isProcessingTicks and informs the object of the passage of time.

DECLARE_CALLBACK(void , onAdvanceTime , (F32 timeDelta) )
DECLARE_CALLBACK(void , onInterpolateTick , (F32 delta) )
DECLARE_CALLBACK(void , onProcessTick , () )

This method is called every frame and lets the control interpolate between ticks so you can smooth things as long as isProcessingTicks returns true when it is called on the object.

bool

Called when the object is added to the sim.

Called when the object is removed from the sim.

This method is called once every 32ms if isProcessingTicks returns true when called on the object.

Public Static Functions

Detailed Description

Private Types

typedef ScriptObject Parent 

Protected Attributes

bool mCallOnAdvanceTime 

Public Functions

ScriptTickObject()

advanceTime(F32 timeDelta)

Reimplemented from: ITickable

DECLARE_CALLBACK(void , onAdvanceTime , (F32 timeDelta) )

DECLARE_CALLBACK(void , onInterpolateTick , (F32 delta) )

DECLARE_CALLBACK(void , onProcessTick , () )

DECLARE_CONOBJECT(ScriptTickObject )

interpolateTick(F32 delta)

Reimplemented from: ITickable

onAdd()

Reimplemented from: ScriptObject

onRemove()

Reimplemented from: ScriptObject

processTick()

Reimplemented from: ITickable

Public Static Functions

initPersistFields()