planck-js
Version:
2D JavaScript/TypeScript physics engine for cross-platform HTML5 game development
45 lines (24 loc) • 850 B
Markdown
# Class: ContactEdge
A contact edge is used to connect bodies and contacts together in a contact
graph where each body is a node and each contact is an edge. A contact edge
belongs to a doubly linked list maintained in each attached body. Each
contact has two contact nodes, one for each attached body.
## Constructors
### new ContactEdge()
> **new ContactEdge**(`contact`): [`ContactEdge`](/api/classes/ContactEdge)
#### Parameters
• **contact**: [`Contact`](/api/classes/Contact)
#### Returns
[`ContactEdge`](/api/classes/ContactEdge)
## Properties
### contact
> **contact**: [`Contact`](/api/classes/Contact)
***
### next
> **next**: [`ContactEdge`](/api/classes/ContactEdge) = `null`
***
### other
> **other**: [`Body`](/api/classes/Body) = `null`
***
### prev
> **prev**: [`ContactEdge`](/api/classes/ContactEdge) = `null`