|
| Arc (float radius, Vector2 position, Vector2 direction, float angle) |
| - Parameters
-
direction | Direction vector of the middle of the arc |
angle | Angle of the arc in degrees |
|
|
bool | CollidesWith (Circle target) |
|
◆ Arc()
Slasher.Collision.Arc.Arc |
( |
float | radius, |
|
|
Vector2 | position, |
|
|
Vector2 | direction, |
|
|
float | angle ) |
- Parameters
-
direction | Direction vector of the middle of the arc |
angle | Angle of the arc in degrees |
◆ CollidesWith()
bool Slasher.Collision.Arc.CollidesWith |
( |
Circle | target | ) |
|
◆ GetDegreesAsDir()
Vector2 Slasher.Collision.Arc.GetDegreesAsDir |
( |
float | angle | ) |
|
|
private |
◆ GetDirAsDegrees()
float Slasher.Collision.Arc.GetDirAsDegrees |
( |
Vector2 | dir | ) |
|
|
private |
◆ GetIntersectionAngleRange()
bool Slasher.Collision.Arc.GetIntersectionAngleRange |
( |
Circle | target, |
|
|
out float | angle1, |
|
|
out float | angle2 ) |
|
private |
- Parameters
-
angle1 | In degrees, where 0 degrees is straight up, and increasing goes clockwise. |
This point is always counterclockwise to the next point.
- Parameters
-
angle2 | In degrees, where 0 degrees is straight up, and increasing goes clockwise. This point is always clockwise from the previous point. |
◆ Direction
Vector2 Slasher.Collision.Arc.Direction |
◆ Position
Vector2 Slasher.Collision.Arc.Position |
◆ Radius
float Slasher.Collision.Arc.Radius |
◆ Range
float Slasher.Collision.Arc.Range |
The documentation for this struct was generated from the following file:
- StyleSlasherUnityProject/Assets/Scripts/Collision/Shapes/Arc.cs