dacha
    Preparing search index...

    Class BehaviorAbstract

    Base class for all behaviors

    Behaviors are the core logic units that operate on actors and can be used to add custom behavior to actors

    Index
    • Creates the behavior.

      Parameters

      • Optionaloptions: object

        The behavior's options. Fields marked with DefineField take their values from options, or its decorated fields keep their initial values.

      Returns Behavior

    behaviorName: string

    The name the configuration uses for the behavior.

    DefineBehavior sets it, so a game usually does not assign it.

    • Destroy the behavior

      Returns void

    • Update the behavior with a fixed timestep, aligned with physics

      Returns void

    • Update the behavior every frame with a variable timestep

      Returns void