ChainShape Constructor (Vertices, Boolean) |
Create a new chainshape from the vertices.
Namespace:
Internal.tainicom.Aether.Physics2D.Collision.Shapes
Assembly:
NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax public ChainShape(
Vertices vertices,
bool createLoop = false
)
Parameters
- vertices
- Type: Internal.tainicom.Aether.Physics2D.CommonVertices
The vertices to use. Must contain 2 or more vertices. - createLoop (Optional)
- Type: SystemBoolean
Set to true to create a closed loop. It connects the first vertice to the last, and automatically adjusts connectivity to create smooth collisions along the chain.
See Also