Skip to content

body-options overview


Table of contents


utils

BodyOptions (interface)

Signature

export interface BodyOptions {
  dynamic: boolean
  mass: number
  restitution: number
  friction: number
  ownCollisionGroups: CollisionGroup[] | 'all'
  interactWithCollisionGroups: CollisionGroup[] | 'all'
}

CollisionGroup (type alias)

Signature

export type CollisionGroup = number

DebugBodySettings (type alias)

Signature

export type DebugBodySettings = { shape: any; ignoreTransform?: boolean } & (
  | {
      type: 'RIGID_STATIC' | 'TRIGGER'
    }
  | {
      type: 'RIGID_DYNAMIC'
      sleeping: boolean
    }
)