omega-game-engine
    Preparing search index...

    Represents a directional light source, which simulates light from a distant source like the sun. *

    Hierarchy (View Summary)

    Indexable

    • [key: string]: any
    Index

    Constructors

    Properties

    _className: string = 'DirectionalLight'
    _serializationIgnoreKeys: string[]
    _uuid: string
    active: boolean = true

    A flag indicating if the entity is active and should be updated. *

    behaviours: EntityBehaviour[] = []

    A collection of behaviours attached to the entity. * *

    color: Color

    The color and intensity of the light. *

    destroyed: boolean = false

    A flag indicating if the entity has been destroyed. * *

    entityType: EntityType = EntityType.LIGHT_DIRECTIONAL

    The type of the entity, specifically set to LIGHT_DIRECTIONAL. * *

    invertLightDirection: boolean = false
    name: string = ''
    scene: Scene

    The scene to which this entity belongs. *

    show: boolean = true

    A flag indicating if the entity should be rendered. *

    tag: string = 'Entity'

    A tag used for identifying or grouping entities. *

    transform: Transform

    The transform component of the entity. *

    updateInEditor: boolean = false

    A flag to determine if the entity should update in the editor. *

    Accessors

    Methods

    • Retrieves the first behaviour of a specific type from the collection. *

      Type Parameters

      Parameters

      • constructor: new (...args: any[]) => T

        The constructor function of the type to filter by. *

      Returns undefined | T

      • The first behaviour found of the specified type, or undefined if none is found.
    • Retrieves all behaviours of a specific type from the collection. *

      Type Parameters

      Parameters

      • constructor: new (...args: any[]) => T

        The constructor function of the type to filter by. *

      Returns T[]

      • An array of behaviours of the specified type.
    • Updates the entity and its behaviours. *

      Parameters

      • ellapsed: number

        The elapsed time in seconds since the last update. *

      Returns void