Net entity: using a shape path as a net template
The yellow beads are draggable
Test purpose
- Create a path-based shape entity (an arrow).
- Create a Net entity, setting its 'generate' attribute to 'weak-shape' and its 'shapeTemplate' attribute to the arrow entity. Make the Net entity's first particle static.
- Clone the arrow, and the Net entity; set the cloned Net's 'generate' attribute to 'strong-shape'
- Check that the particles can be dragged, and will - generally - reform their shapes after being dragged (note that the strong arrow is, in particular, unstable in this demo and will collapse if dragged too far).
Annotated code