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

enabled

enabled: boolean = true

mass

mass: number = 1

useGravity

useGravity: boolean = true

Accessors

angularVelocity

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

constraints

velocity

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

Methods

addForce

addForceAtPosition

addRelativeTorque

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

addTorque

copy

movePosition

moveRotation

toJSON