Struct SensorEventData
A sensor overlap event delivered to ISensorEventHandler implementations.
public readonly record struct SensorEventData : IEquatable<SensorEventData>
- Implements
- Inherited Members
Constructors
SensorEventData(SensorEventType, Entity, Entity, B2ShapeId, B2ShapeId)
A sensor overlap event delivered to ISensorEventHandler implementations.
public SensorEventData(SensorEventType Type, Entity SensorEntity, Entity VisitorEntity, B2ShapeId SensorShapeId, B2ShapeId VisitorShapeId)
Parameters
TypeSensorEventTypeThe kind of sensor event.
SensorEntityEntityThe entity owning the sensor shape.
VisitorEntityEntityThe entity that entered or left the sensor.
SensorShapeIdB2ShapeIdThe sensor shape.
VisitorShapeIdB2ShapeIdThe visiting shape.
Properties
SensorEntity
The entity owning the sensor shape.
public Entity SensorEntity { get; init; }
Property Value
SensorShapeId
The sensor shape.
public B2ShapeId SensorShapeId { get; init; }
Property Value
- B2ShapeId
Type
The kind of sensor event.
public SensorEventType Type { get; init; }
Property Value
VisitorEntity
The entity that entered or left the sensor.
public Entity VisitorEntity { get; init; }
Property Value
VisitorShapeId
The visiting shape.
public B2ShapeId VisitorShapeId { get; init; }
Property Value
- B2ShapeId