Skip to content

PhysicsConfig

Defined in: physics/src/types.ts:41

Configuration for the physics world.

optional gravity?: object

Defined in: physics/src/types.ts:43

Gravity in pixels/s², both components finite. Default: { x: 0, y: 980 }.

x: number

y: number


optional pixelsPerMeter?: number

Defined in: physics/src/types.ts:45

Pixels per meter for internal conversion; finite and > 0. Default: 50.

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/physics.md.