GET /contacts
Since 0.6
Response
Response: array of ContactRecord
One contact point produced by the last physics step. Mirrors argus_physics::Contact.
| Field | Type | Present | Description |
|---|---|---|---|
a | string | always | The first entity's id. |
b | string | always | The second entity's id. |
point | number[3] | always | World-space contact point. |
normal | number[3] | always | Contact normal, pointing from a towards b. |
depth | number | always | Penetration depth in metres; positive when the shapes overlap. |
impulse | number | always | Normal impulse the solver applied, in newton-seconds. |
frame | integer | always | The frame this contact was observed on. |
Example
curl "http://127.0.0.1:7700/contacts"
Start a server with argus run --serve; the port is --port (7700 by default). The request and response fields are in the query API guide.