SerenityJS
    Preparing search index...

    Class EntityLookAtPlayerTrait

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    entity: Entity

    The entity that this trait is attached to.

    headTiltOffset: number = 0

    The head tilt offset of the entity.

    identifier: string = ...

    The identifier of the trait.

    radius: number = 5

    The radius of the entity to look at the player.

    components: string[] = []

    The entity component identifiers that this trait is compatible with by default. If empty, the trait will not be initialized by any component.

    identifier: "look-at-player"

    The identifier of the trait.

    types: EntityIdentifier[] = ...

    The entity type identifiers that this trait is compatible with by default.

    Accessors

    Methods