Host typegenerated
Contact2d
A copied solid solver contact from the last fixed step, relative to the queried body. Sensors are excluded. Multiple points/pieces may name one entity. Sleeping contacts retain support geometry and report zero new impulses/force. Editing a snapshot does not change physics.
8 members · engine 0.1.0
Contact2d.entity: EntityThe other entity touching the queried body.Contact2d.force: Vec2Total world impulse divided by the fixed step's seconds, as Vec2.Contact2d.normal: Vec2World-space unit push direction towards the queried body, as Vec2.Contact2d.normal_impulse: numberNonnegative normal impulse from the last solve.Contact2d.other_piece: StringThe name of the other body's collider piece that touches, or "" for one with none.Contact2d.piece: StringThe name of the queried body's collider piece that touches, or "" for one with none.Contact2d.point: Vec2World-space midpoint of the two surface anchors, as Vec2.Contact2d.tangent_impulse: numberSigned friction impulse along Vec2(-normal.y, normal.x).
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b