ZGameEditor Documentation
Community |
ModelStateModelStateRepresents 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 PropertiesOnStartCalled when this state is started. OnUpdateCalled between every frame when this state is active. OnLeaveCalled when the model leaves this state, i.e. when SetModelState sets another state. OnRenderA list of render commands for this state. DefinitionsLocal data for this state. OnCollisionCalled when the model has collided with another model. See Model.OnCollision. |