| Method |
Description |
| AddLayer |
Add a Circle Geometry layer to the Physics Composer.
|
| CreateChainGeometry |
Create ChainGeometry from the composition by iterating all the layers added to the composition in the layer order specified, applying each operation specified.
A limit is imposed on small vertex distances so it is recommended that scaling is applied here rather than on the returned geometry so geometry is not discarded due to it being invalid.
|
| CreateConvexHulls |
Create ConvexHull from the composition by iterating all the layers added to the composition in the layer order specified, applying each operation specified.
|
| CreatePolygonGeometry |
Create PolygonGeometry from the composition by iterating all the layers added to the composition in the layer order specified, applying each operation specified.
A limit is imposed on small vertex distances so it is recommended that scaling is applied here rather than on the returned geometry so geometry is not discarded due to it being invalid.
|
| Destroy |
Destroy the Physics Composer.
|
| GetGeometryIslands |
Get the geometry islands from a previous polygon geometry composition i.e. a call to PhysicsComposer.CreatePolygonGeometry or PhysicsComposer.CreateConvexHulls.
Each generated polygon or convex-hull belongs to a unique island defining a set of polygons that are connected together as they share edges.
The array returned contains a series of ranges where each range is a unique connected island where the range indicates both the start index and length of the original polygon indices.
The number of discovered unique islands is defined by the size of the returned array.
|
| RemoveLayer |
Remove a layer from the Physics Composer.
|