Class Rigidbody

This class extends THREE.Object3D

See

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

Hierarchy

Constructors

  • Parameters

    • __namedParameters: {
          angularDrag: number;
          canSleep: boolean;
          ccdEnabled: boolean;
          drag: number;
          gravityScale: number;
          type: RigidbodyType;
      } = {}
      • angularDrag: number
      • canSleep: boolean
      • ccdEnabled: boolean
      • drag: number
      • gravityScale: number
      • type: RigidbodyType

    Returns Rigidbody

Properties

isGameObject: boolean = true

Accessors

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

    • angularVelocity: Vector3

    Returns void

  • Parameters

    • worldPosition: Vector3
    • worldQuaternion: Quaternion

    Returns void

  • Parameters

    • Optional force: boolean

    Returns void