interface IRigidbody {
    autoMass: boolean;
    gameObject: IGameObject;
    get activeAndEnabled(): boolean;
    get destroyed(): boolean;
    get forward(): Vector3;
    get isComponent(): boolean;
    get isRigidbody(): boolean;
    get layer(): number;
    get name(): string;
    get tag(): string;
    get worldPosition(): Vector3;
    get worldQuaternion(): Quaternion;
    awake(): any;
    destroy(): any;
    earlyUpdate(): void;
    lateUpdate(): void;
    onAfterRender(): void;
    onBeforeRender(frame: null | XRFrame): void;
    onCollisionEnter(col: Collision): any;
    onCollisionExit(col: Collision): any;
    onCollisionStay(col: Collision): any;
    onDestroy(): any;
    onDisable(): any;
    onEnable(): any;
    onPausedChanged(isPaused: boolean, wasPaused: boolean): any;
    onTriggerEnter(col: ICollider): any;
    onTriggerExit(col: ICollider): any;
    onTriggerStay(col: ICollider): any;
    onValidate(property?: string): any;
    registering(): any;
    start(): void;
    update(): void;
}

Hierarchy (View Summary)

Implemented by

Properties

autoMass: boolean

When true the mass will automatically calculated by attached colliders

gameObject: IGameObject

the object this component is attached to

Accessors

  • get activeAndEnabled(): boolean

    Returns boolean

  • get destroyed(): boolean

    Returns boolean

  • get forward(): Vector3

    Returns Vector3

  • get isComponent(): boolean

    Returns boolean

  • get isRigidbody(): boolean

    Returns boolean

  • get layer(): number

    Returns number

  • get name(): string

    Returns string

  • get tag(): string

    Returns string

  • get worldPosition(): Vector3

    Returns Vector3

Methods

  • Parameters

    • frame: null | XRFrame

    Returns void

  • called when this.context.isPaused changes or when rendering loop changes due to changing DOM element visibility e.g. when the DOM element becomes hidden or out ot view

    Parameters

    • isPaused: boolean
    • wasPaused: boolean

    Returns any

  • called for properties decorated with the

    Parameters

    • Optionalproperty: string

    Returns any

    decorator

  • experimental, called when the script is registered for the first time, this is called even if the component is not enabled.

    Returns any