Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RigidBody

Hierarchy

  • RigidBody

Implements

Index

Constructors

constructor

  • Creates a new RigidBody instance.

    Parameters

    • $owner: Actor

      The owning actor instance. Field name is prefixed with a dollar sign so that it is ignored by the actor patch detection system.

    Returns RigidBody

Properties

collisionDetectionMode

collisionDetectionMode: CollisionDetectionMode = CollisionDetectionMode.Discrete

detectCollisions

detectCollisions: boolean = true

mass

mass: number = 1

useGravity

useGravity: boolean = true

Accessors

angularVelocity

  • get angularVelocity(): object
  • set angularVelocity(value: Partial<Vector3>): void
  • Returns object

  • Parameters

    Returns void

constraints

velocity

  • get velocity(): object
  • set velocity(value: Partial<Vector3>): void
  • PUBLIC ACCESSORS

    Returns object

  • PUBLIC ACCESSORS

    Parameters

    Returns void

Methods

addForce

  • Parameters

    Returns void

addForceAtPosition

  • Parameters

    Returns void

addRelativeTorque

  • addRelativeTorque(relativeTorque: Partial<Vector3Like>): void
  • Parameters

    Returns void

addTorque

  • Parameters

    Returns void

copy

  • Parameters

    Returns this

movePosition

  • Parameters

    Returns void

moveRotation

  • Parameters

    Returns void

toJSON