Kerby64
    Preparing search index...

    Generic class for game entities.
    This class is used to create and manage game entities within minigames.
    It handles instantiation, cloning, animation registration, and component management.
    It also provides methods for mesh manipulation and collision handling.
    It is designed to be extended by specific game entities, such as players or enemies.\

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    animations: Record<string, AnimationGroup> = {}
    baseSourceURI: string = "./assets/models/"
    components: Component[] = []
    isDisposed: boolean = false
    mesh?: Mesh
    name: string
    scene: LevelScene

    Accessors

    • get meshRef(): Mesh

      this is probably not the good way to do what you want to do, considering you're using this. make a new method that do what you want instead of using this

      Returns Mesh

    Methods

    • Parameters

      • Optionalname: string
      • Optionalposition: Vector3
      • Optionalrotation: Vector3
      • cloneComponents: boolean = false

      Returns GameEntity

    • Parameters

      • name: string

      Returns AnimationGroup

    • Parameters

      • position: Vector3 = ...
      • rotation: Vector3 = ...

      Returns Promise<void>

    • Parameters

      • otherMesh: AbstractMesh

      Returns boolean

    • Parameters

      • displacement: Vector3

      Returns void

    • Parameters

      • direction: Vector3

      Returns void