Vixen
02b45cc4
csharp
public readonly record struct TriggerEvent

Something entered or left a sensor.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Enter and exit only, because that is what a trigger is for and because "still inside" is a question with a cheaper answer: the set of bodies currently in a sensor is a query the caller can keep for itself, and raising an event per body per step for a large volume is a great deal of traffic to describe a thing that did not change.

Fields and properties (3)

  • public ContactPhase Phase

    Began on entry, Ended on exit. A trigger never reports Continued — see the remarks.

  • public BodyHandle Sensor

    The trigger volume.

  • public BodyHandle Other

    What entered or left it.

Methods (1)

Used by (3)

  • PhysicsSceneVixen.Physics
  • PhysicsWorldVixen.Physics
  • PhysicsWorldTestsVixen.Physics.Tests