planck-js
Version:
2D JavaScript/TypeScript physics engine for cross-platform HTML5 game development
49 lines (26 loc) • 900 B
Markdown
Class: JointEdge
A joint edge is used to connect bodies and joints together in a joint graph
where each body is a node and each joint is an edge. A joint edge belongs to
a doubly linked list maintained in each attached body. Each joint has two
joint nodes, one for each attached body.
# Constructors
## new JointEdge()
**new JointEdge**(): [`JointEdge`](/api/classes/JointEdge)
### Returns
[`JointEdge`](/api/classes/JointEdge)
# Properties
## joint
**joint**: [`Joint`](/api/classes/Joint) = `null`
the joint
***
## next
**next**: [`JointEdge`](/api/classes/JointEdge) = `null`
the next joint edge in the body's joint list
***
## other
**other**: [`Body`](/api/classes/Body) = `null`
provides quick access to the other body attached.
***
## prev
**prev**: [`JointEdge`](/api/classes/JointEdge) = `null`
prev the previous joint edge in the body's joint list