Class Rigidbody

Hierarchy

Constructors

Properties

active: boolean = true
componentMask: number = 0
isGameObject: boolean = true

Accessors

Methods

  • Type Parameters

    • T extends typeof Component

    Parameters

    • componentClass: T
    • initialData: {
          [key: string]: any;
      } = {}
      • [key: string]: any

    Returns Component

  • Type Parameters

    • T extends Component<T>

    Parameters

    • componentClass: {
          bitmask: number;
          defaults: {
              [key: string]: any;
          };
          new (_cm: ComponentManager, _mi: number): T;
      }
        • new (_cm: ComponentManager, _mi: number): T
        • Parameters

          • _cm: ComponentManager
          • _mi: number

          Returns T

      • bitmask: number
      • defaults: {
            [key: string]: any;
        }
        • [key: string]: any

    Returns T

  • Parameters

    • angularVelocity: Vector3

    Returns void

  • Parameters

    • worldPosition: Vector3
    • worldQuaternion: Quaternion

    Returns void

  • Parameters

    • Optional force: boolean

    Returns void