Vixen
02b45cc4
csharp
public readonly record struct EntityContactEvent

Two 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 Phase

    Which of the three.

  • public Entity First

    One entity.

  • public Entity Second

    The other.

  • public Vector3 Position

    A point on the contact manifold, in world space.

  • public Vector3 Normal

    The contact normal, from the first towards the second.

  • public float PenetrationDepth

    How far the two overlap, in metres.

Methods (1)

Used by (2)

  • PhysicsSceneVixen.Physics
  • PhysicsSceneTestsVixen.Physics.Tests