Contact2D#
A contact normal points outward from Other toward Self. Sensors report entry once until separation. Solid contacts report impacts, not continuous resting-contact events.
public readonly record struct Contact2D(RuntimeEntity Self, RuntimeEntity Other, Vector2 Normal, bool IsSensor)Record properties#
| Property | Type | Access | Constructor default |
|---|---|---|---|
Self | RuntimeEntity | get; init; | required |
Other | RuntimeEntity | get; init; | required |
Normal | Vector2 | get; init; | required |
IsSensor | bool | get; init; | required |
Related types#
Source#
- Motion2D.cs