SweepHit2D#
public readonly record struct SweepHit2D(float Fraction, Vector2 Normal, float Penetration = 0)Record properties#
| Property | Type | Access | Constructor default |
|---|---|---|---|
Fraction | float | get; init; | required |
Normal | Vector2 | get; init; | required |
Penetration | float | get; init; | 0 |
Source#
- Collision2D.cs