Parameter | Description |
---|---|
geometry | The Circle Geometry to use. |
transform | The transform to use on the geometry. |
operation | The composer operation to use. |
order | The order to perform the composer operation. |
curveStride | The curve stride used when creating curves, in radians. Valid range is [PhysicsComposer.MinCurveStride, 1.0]. |
reverseWinding | Whether the winding should be reversed. Typically winding is generated anti-clockwise, reversed winding is therefore clockwise. |
LayerHandle A handle to the new layer.
Add a Circle Geometry layer to the Physics Composer.
Parameter | Description |
---|---|
geometry | The Circle Geometry to use. This geometry will be copied so the geometry the span is referring to can be disposed of afterwards if required. |
transform | The transform to use on the geometry. |
operation | The composer operation to use. |
order | The order to perform the composer operation. |
curveStride | The curve stride used when creating curves, in radians. Valid range is [PhysicsComposer.MinCurveStride, 1.0]. |
reverseWinding | Whether the winding should be reversed. Typically winding is generated anti-clockwise, reversed winding is therefore clockwise. |
LayerHandle A handle to the new layer.
Add multiple Circle Geometry layer to the Physics Composer.
Parameter | Description |
---|---|
geometry | The Capsule Geometry to use. |
transform | The transform to use on the geometry. |
operation | The composer operation to use. |
order | The order to perform the composer operation. |
curveStride | The curve stride used when creating curves, in radians. Valid range is [PhysicsComposer.MinCurveStride, 1.0]. |
reverseWinding | Whether the winding should be reversed. Typically winding is generated anti-clockwise, reversed winding is therefore clockwise. |
LayerHandle A handle to the new layer.
Add a Capsule Geometry layer to the Physics Composer.
Parameter | Description |
---|---|
geometry | The Capsule Geometry to use. This geometry will be copied so the geometry the span is referring to can be disposed of afterwards if required. |
transform | The transform to use on the geometry. |
operation | The composer operation to use. |
order | The order to perform the composer operation. |
curveStride | The curve stride used when creating curves, in radians. Valid range is [PhysicsComposer.MinCurveStride, 1.0]. |
reverseWinding | Whether the winding should be reversed. Typically winding is generated anti-clockwise, reversed winding is therefore clockwise. |
LayerHandle A handle to the new layer.
Add multiple Capsule Geometry layer to the Physics Composer.
Parameter | Description |
---|---|
geometry | The Polygon Geometry to use. |
transform | The transform to use on the geometry. |
operation | The composer operation to use. |
order | The order to perform the composer operation. |
curveStride | The curve stride used when creating curves, in radians. Valid range is [PhysicsComposer.MinCurveStride, 1.0]. |
reverseWinding | Whether the winding should be reversed. Typically winding is generated anti-clockwise, reversed winding is therefore clockwise. |
LayerHandle A handle to the new layer.
Add a Polygon Geometry layer to the Physics Composer.
Parameter | Description |
---|---|
geometry | The Polygon Geometry to use. This geometry will be copied so the geometry the span is referring to can be disposed of afterwards if required. |
transform | The transform to use on the geometry. |
operation | The composer operation to use. |
order | The order to perform the composer operation. |
curveStride | The curve stride used when creating curves, in radians. Valid range is [PhysicsComposer.MinCurveStride, 1.0]. |
reverseWinding | Whether the winding should be reversed. Typically winding is generated anti-clockwise, reversed winding is therefore clockwise. |
LayerHandle A handle to the new layer.
Add multiple PhysicsShape layer to the Physics Composer.
Parameter | Description |
---|---|
shape | The PhysicsShape to use. |
transform | The transform to use on the geometry. |
operation | The composer operation to use. |
order | The order to perform the composer operation. |
curveStride | The curve stride used when creating curves, in radians. Valid range is [PhysicsComposer.MinCurveStride, 1.0]. |
reverseWinding | Whether the winding should be reversed. Typically winding is generated anti-clockwise, reversed winding is therefore clockwise. |
LayerHandle A handle to the new layer.
Add a PhysicsShape layer to the Physics Composer. Only PhysicsShape with a geometry of PhysicsShape.ShapeType.Circle, PhysicsShape.ShapeType.Capsule or PhysicsShape.ShapeType.Polygon will be used. All other types will be ignored.
Parameter | Description |
---|---|
shapes | The PhysicsShapes to use. The geometry these shapes used will be copied so the geometry the span is referring to can changed afterwards if required. |
transform | The transform to use on the geometry. |
operation | The composer operation to use. |
order | The order to perform the composer operation. |
curveStride | The curve stride used when creating curves, in radians. Valid range is [PhysicsComposer.MinCurveStride, 1.0]. |
reverseWinding | Whether the winding should be reversed. Typically winding is generated anti-clockwise, reversed winding is therefore clockwise. |
LayerHandle A handle to the new layer.
Add a Polygon Geometry layer to the Physics Composer. Only PhysicsShape with a geometry of PhysicsShape.ShapeType.Circle, PhysicsShape.ShapeType.Capsule or PhysicsShape.ShapeType.Polygon will be used. All other types will be ignored.
Parameter | Description |
---|---|
vertices | A span of vertices. This geometry will be copied so the geometry the span is referring to can be disposed of afterwards if required. |
transform | The transform to use on the geometry. |
operation | The composer operation to use. |
order | The order to perform the composer operation. |
reverseWinding | Whether the winding should be reversed. Typically winding is generated anti-clockwise, reversed winding is therefore clockwise. |
LayerHandle A handle to the new layer.
Add a vertices layer to the Physics Composer.