PhysicsConfig
Defined in: physics/src/types.ts:41
Configuration for the physics world.
Properties
Section titled “Properties”gravity?
Section titled “gravity?”
optionalgravity?:object
Defined in: physics/src/types.ts:43
Gravity in pixels/s², both components finite. Default: { x: 0, y: 980 }.
x:
number
y:
number
pixelsPerMeter?
Section titled “pixelsPerMeter?”
optionalpixelsPerMeter?: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.