This constraint prevents particles from moving outside of one or more polygons. If a particle ventures outside it will be moved back to its closest point inside the specified polygon(s) and have its velocity set to zero.
The following parameters defines the training of the constraint and can be
passed along a call to
polygon : A two column matrix giving the polygon, or a list of matrices
to use multiple polygons. Overlapping polygons will be subtracted from each
other so it is possible to define polygons with holes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.