A distance proxy is used by the GJK algorithm. It encapsulates any shape. You can provide between 1 and Constants.MAX_POLYGON_VERTICES and a radius.
More...
|
| ShapeProxy (ReadOnlySpan< Vec2 > points, float radius) |
| Constructs a new ShapeProxy object with the given parameters.
|
|
| ShapeProxy () |
| Constructs a new ShapeProxy object with default values.
|
|
|
float | Radius |
| The radius of the shape.
|
|
|
ReadOnlySpan< Vec2 > | Points [get, set] |
| The points of the shape in local coordinates.
|
|
A distance proxy is used by the GJK algorithm. It encapsulates any shape. You can provide between 1 and Constants.MAX_POLYGON_VERTICES and a radius.
◆ ShapeProxy()
Box2D.ShapeProxy.ShapeProxy |
( |
ReadOnlySpan< Vec2 > |
points, |
|
|
float |
radius |
|
) |
| |
|
inline |
Constructs a new ShapeProxy object with the given parameters.
- Parameters
-
points | The points of the shape in local coordinates. |
radius | The radius of the shape. |
- Exceptions
-
ArgumentException | Thrown when the number of points exceeds the maximum allowed. |
ArgumentNullException | Thrown when the points array is null. |
ArgumentOutOfRangeException | Thrown when the number of points is less than 1. |
The documentation for this struct was generated from the following file:
- src/Box2DBindings/Shapes/ShapeProxy.cs