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.
| Endpoint | POST /api/gaming/physics |
| Auth | api-key |
| Rate limit | 30/min |
| Category | gaming |
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
bodies | array | Yes | [{ id, mass, position, velocity, shape }] |
forces | array | No | [{ bodyId, force_N, direction }] |
steps | number | No | Zeqond steps to simulate (1–128). |
gravity | number | No | Gravity 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.