Plush

Contact#

PlushEngine · Type index

Namespace: PlushEngine.Physics (using PlushEngine.Physics;)

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#

PropertyTypeAccessConstructor default
SelfRuntimeEntityget; init;required
OtherRuntimeEntityget; init;required
PointVector3get; init;required
NormalVector3get; init;required
RelativeVelocityVector3get; init;required
IsSensorboolget; init;required

RuntimeEntity

Source#