Optionaldatathe game's own payload for this link (a material, a source index), kept on XpbdLink.data
Optionalmassmass of the link itself, shared evenly between its two nodes
Optionalrestrest length; the current distance between the nodes when omitted
spring stiffness: force per unit of stretch ratio. Higher is more rigid
Optionalstrengththe load it carries in compression before breaking; also in tension unless tensionStrength is set. Unbreakable when omitted
Optionaltensiona cable: pulls when stretched and goes slack, without pushing, when compressed
Optionaltensionthe load it carries in tension before breaking, when that differs from strength
What
XpbdWorld.addLinktakes.aandbare node indices as returned byaddNode.