PM_Dynamic

PM_Dynamic

Dynamic pawns have an update method that is called every frame by ViewRoot. Make a pawn dynamic if it needs to do something every frame. (for example, interpolate its position.)

Methods

# update(time, delta)

Called every frame by ViewRoot. Overload this to create your pawn's custom update.

Parameters:
Name Type Description
time number

The view time in milliseconds of the current frame.

delta number

The elapsed time in milliseconds since the previous frame.

# preUpdate(time, delta)

Called every frame by ViewRoot right before update(). Use this only for operations that must occur before everything else.

Parameters:
Name Type Description
time number

The view time in milliseconds of the current frame.

delta number

The elapsed time in milliseconds since the previous frame.

# postUpdate(time, delta)

Called every frame by ViewRoot right after update(). Use this only for operations that must occur after everything else.

Parameters:
Name Type Description
time number

The view time in milliseconds of the current frame.

delta number

The elapsed time in milliseconds since the previous frame.