public SphereOverlapRangeObject(GameObject AssociatedGameObject, SphereRangeObjectInitialization SphereRangeObjectInitialization, CoreInteractiveObject AssociatedInteractiveObject, Func <InteractiveObjectPhysicsTriggerInfo, bool> interactiveObjectSelectionGuard, string objectName = "", Action <CoreInteractiveObject> OnInteractiveObjectJusInsideAndFiltered = null, Action <CoreInteractiveObject> OnInteractiveObjectJustOutsideAndFiltered = null) : base(AssociatedGameObject, SphereRangeObjectInitialization, AssociatedInteractiveObject, objectName) { this.InteractiveObjectSelectionGuard = interactiveObjectSelectionGuard; this.InteractiveObjectLocalContainerSystem = new InteractiveObjectLocalContainerSystem(OnInteractiveObjectJusInsideAndFiltered, OnInteractiveObjectJustOutsideAndFiltered); this.RegisterPhysicsEventListener(new InteractiveObjectPhysicsEventListenerDelegated(interactiveObjectSelectionGuard, onTriggerEnterAction: this.OnTriggerEnter, onTriggerExitAction: this.OnTriggerExit)); }
public BoxRayRangeObject(GameObject AssociatedGameObject, BoxRangeObjectInitialization BoxRangeObjectInitialization, CoreInteractiveObject AssociatedInteractiveObject, float rayWidth, Func <InteractiveObjectPhysicsTriggerInfo, bool> InteractiveObjectSelectionGuard, string objectName = "") : base(AssociatedGameObject, BoxRangeObjectInitialization, AssociatedInteractiveObject, objectName) { this.InteractiveObjectSelectionGuard = InteractiveObjectSelectionGuard; this.InteractiveObjectLocalContainerSystem = new InteractiveObjectLocalContainerSystem(null, null); this.RayWidth = rayWidth; this.RegisterPhysicsEventListener(new InteractiveObjectPhysicsEventListenerDelegated( InteractiveObjectSelectionGuard, onTriggerEnterAction: this.OnTriggerEnter, onTriggerExitAction: this.OnTriggerExit )); }