Methods
# update(time, delta)
Called every frame by ViewRoot. Overload this to create your pawn's custom update.
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.
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.
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. |