Skip to content

i-rigid-body.component overview


Table of contents


utils

IRigidBodyComponent (interface)

Signature

export interface IRigidBodyComponent<D, R, TypeDoc extends PhysicsTypeDocRepo<D, R> = PhysicsTypeDocRepo<D, R>>
  extends IBodyComponent<D, R, TypeDoc> {
  linearVelocity: D
  angularVelocity: R | D

  clone(): IRigidBodyComponent<D, R, TypeDoc>

  /** clear velocities etc. */
  resetMotion(): void
}