csharp
public readonly record struct TriggerEventSomething 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 PhaseBegan on entry, Ended on exit. A trigger never reports Continued — see the remarks.
public BodyHandle SensorThe trigger volume.
public BodyHandle OtherWhat entered or left it.
Methods (1)
public TriggerEvent(ContactPhase Phase, BodyHandle Sensor, BodyHandle Other)Something entered or left a sensor.
Used by (3)
- PhysicsSceneVixen.Physics
- PhysicsWorldVixen.Physics
- PhysicsWorldTestsVixen.Physics.Tests