InteractableTriggerBroadcaster Class
Extends MonoBehaviour
Acts as a forwarder of Trigger events for Rigidbody overlaps.
Used in conjunction with CollisionInteractionRegistry<TInteractor, TInteractable>.
Note: If Physics.simulationMode is SimulationMode.Script,
ForceGlobalUpdateTriggers should be called after every call to Physics.Simulate(float)
Raised when a rigidbody collision is detected with the associated
IInteractable.
Raised when a rigidbody collision with the associated
IInteractable ends.
Action< Rigidbody > WhenRigidbodyEntered[Get]
Raised when a rigidbody collision is detected.
Initialized to null to know if it's been set.
Action< Rigidbody > WhenRigidbodyExited[Get]
Raised when a rigidbody collision ends.
Initialized to null to know if it's been set.
virtual void OnTriggerStay ( Collider collider )
virtual void OnEnable ( )
virtual void FixedUpdate ( )
virtual void OnDisable ( )
virtual void OnDestroy ( )
static void ForceGlobalUpdateTriggers ( )
Forces trigger broadcasters to update their trigger states.
If Physics.simulationMode is SimulationMode.Script,
ForceGlobalUpdateTriggers should be called after every call to Physics.Simulate(float)
void InjectAllInteractableTriggerBroadcaster This method exists to support
Interaction SDK's dependency injection pattern and is not needed for typical
Unity Editor-based usage.
This method exists to support
Interaction SDK's dependency injection pattern and is not needed for typical
Unity Editor-based usage.