Contact#
A default spatial contact as seen from Self: Normal points from Self toward Other, RelativeVelocity is Other's linear velocity minus Self's. Sensor contacts report overlap with no physical response. On exit, Other may already be inactive or destroyed.
public readonly record struct Contact(RuntimeEntity Self, RuntimeEntity Other, Vector3 Point, Vector3 Normal, Vector3 RelativeVelocity, bool IsSensor)Record properties#
| Property | Type | Access | Constructor default |
|---|---|---|---|
Self | RuntimeEntity | get; init; | required |
Other | RuntimeEntity | get; init; | required |
Point | Vector3 | get; init; | required |
Normal | Vector3 | get; init; | required |
RelativeVelocity | Vector3 | get; init; | required |
IsSensor | bool | get; init; | required |
Related types#
Source#
- Contact.cs