Recent Changes - Search:

ZGameEditor

Documentation

Community

Edit sidebar

ModelState

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.

Edit - History - Print - Recent Changes - Search
Page last modified on February 25, 2010, at 04:06 pm