Skip to main content

ZeqPhysicsEngine

Game physics engine with Zeqond-quantized timestep. Deterministic rigid body simulation at 0.777s tick rate, collision detection, constraint solving — same result on every machine.

EndpointPOST /api/gaming/physics
Authapi-key
Rate limit30/min
Categorygaming

Parameters

NameTypeRequiredDescription
bodiesarrayYes[{ id, mass, position, velocity, shape }]
forcesarrayNo[{ bodyId, force_N, direction }]
stepsnumberNoZeqond steps to simulate (1–128).
gravitynumberNoGravity m/s². Default 9.81.

Returns

{ states: [{ step, bodies, collisions, energy }], deterministic: true, zeqond }

Example

curl -sS -X POST \
-H "Authorization: Bearer zsm_..." \
-H "Content-Type: application/json" \
-d '{
"bodies": [],
"forces": [],
"steps": 1,
"gravity": 9.81
}' \
"https://zeqsdk.com/api/gaming/physics"

This protocol is a named building block — one of the operations you compose inside a state contract. Call it directly with the request above, or invoke it from a contract that fires on your machine's clock. Browse the whole library at GET /api/protocols; fetch this one at GET /api/protocols/zeq-physics-engine.