csharp
public readonly record struct EntityContactEventTwo entities touched, went on touching, or stopped.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
An entity here may already be dead: a contact ends because a body was destroyed as often as because it moved away, and the entity that owned it usually went with it. Check World.IsAlive before touching one.
Fields and properties (6)
public ContactPhase PhaseWhich of the three.
public Entity FirstOne entity.
public Entity SecondThe other.
public Vector3 PositionA point on the contact manifold, in world space.
public Vector3 NormalThe contact normal, from the first towards the second.
public float PenetrationDepthHow far the two overlap, in metres.
Methods (1)
public EntityContactEvent(ContactPhase Phase, Entity First, Entity Second, Vector3 Position, Vector3 Normal, float PenetrationDepth)Two entities touched, went on touching, or stopped.
Used by (2)
- PhysicsSceneVixen.Physics
- PhysicsSceneTestsVixen.Physics.Tests