Talos docs

GET /contacts

Since 0.6
Plain text

Response

Response: array of ContactRecord

One contact point produced by the last physics step. Mirrors argus_physics::Contact.

FieldTypePresentDescription
astringalwaysThe first entity's id.
bstringalwaysThe second entity's id.
pointnumber[3]alwaysWorld-space contact point.
normalnumber[3]alwaysContact normal, pointing from a towards b.
depthnumberalwaysPenetration depth in metres; positive when the shapes overlap, a little negative on a point the solver stopped an approach with before the surfaces met.
impulsenumberalwaysNormal impulse the solver applied, in newton-seconds.
frameintegeralwaysThe 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.