Class Player

This class extends THREE.Object3D

See

https://threejs.org/docs/#api/en/core/Object3D

Hierarchy

Constructors

Properties

isGameObject: boolean = true

Accessors

  • get head(): GameObject<Object3DEventMap>
  • Accurate source for player head transform, can be used to attach game objects / audio listeners.

    Returns GameObject<Object3DEventMap>

Methods

  • Get an object containing all the GameComponent on this entity, where the object keys are the component types.

    Returns {
        [componentName: string]: Component<any>;
    }

    • [componentName: string]: Component<any>
  • Get an object containing all the GameComponent that are slated to be removed from this entity, where the object keys are the component types.

    Returns {
        [componentName: string]: Component<any>;
    }

    • [componentName: string]: Component<any>
  • Parameters

    • xrManager: WebXRManager

    Returns void

  • Parameters

    • Optional force: boolean

    Returns void