ComponentRef

Model State

ModelState

Represents a models state. States are used to separate different behaviours of a model. Examples of states for an enemy in a action game could be Attacking, Idling, TakeDamage and Dying.

This component can only be used in the Model.States property.

Example usage: The states for "BoidModel" in Steering sample project

See also: SetModelState

Properties

OnStart

Called when this state is started.

OnUpdate

Called between every frame when this state is active.

OnLeave

Called when the model leaves this state, i.e. when SetModelState sets another state.

OnRender

A list of render commands for this state.

Definitions

Local data for this state.

OnCollision

Called when the model has collided with another model. See Model.OnCollision.

Green Marinee theme adapted by David Gilbert, powered by PmWiki