| Parameter | Description |
|---|---|
| outlineIndex | The index of the physics outline to retrieve. |
ReadOnlySpan<Vector2> The physics outline as a span of vertices. It is recommended that you immediately extract what information you need and not directly reference the returned data as any subsequent change to the physics outline(s) could result in a crash when iterating the span.
Gets a physics outline from the Sprite by its index.
A physics outline is a cyclic sequence of line segments between points that define the outline of the Sprite used for physics. Since the Sprite can have holes and discontinuous parts, it can be made up of more than one physics outline.
| Parameter | Description |
|---|---|
| outlineIndex | The index of the physics outline to retrieve. |
| physicsOutline | An ordered list of the points in the selected physics outline to store points in. |
int The number of points stored in the given list.
Gets a physics outline from the Sprite by its index.
A physics outline is a cyclic sequence of line segments between points that define the outline of the Sprite used for physics. Since the Sprite can have holes and discontinuous parts, it can be made up of more than one physics outline.