Skip to content

shapes overview


Table of contents


utils

BodyShape2DDescriptor (type alias)

Signature

export type BodyShape2DDescriptor = { shape: Shape2DDescriptor; body: Partial<Body2DOptions> }

Shape2DDescriptor (type alias)

Signature

export type Shape2DDescriptor = { shape: 'SQUARE'; dimensions: Point2 } | { shape: 'CIRCLE'; radius: number }