<aside> 🗒️ This contains all the trigger-based systems in GroKit Core. These components must be on GameObjects that have a Collider set to isTrigger and a Rigidbody set to isKinematic.
Grokit Core has extendable triggers that can react to the user, their hands, or any other object. Triggers come in many different varieties, including ItemIDTrigger, PlayerTrigger, and HandTrigger. The Base rigger can be inherited from and customized for your own purposes.
</aside>
<aside> 🗒️ This component serves as a base class for creating trigger events. It includes parameters for controlling the trigger behavior and executing specific actions upon entering and exiting the trigger area. This trigger is designed to be fully extendable.
IsAcceptable
is where you adjust what can enter or exit the trigger.
</aside>
OutwardActivator outwardActivator
The outward activator associated with the trigger.bool useTriggerEffectors
A flag to control if trigger effectors should be used.bool debugTrigger
A flag to enable/disable trigger debugging.public UnityEvent enterEvent
Event triggered upon entering.public bool hasTriggersExit
A flag to control if the trigger has exit events.public UnityEvent exitEvent
Event triggered upon exiting._EnterEvent()
Invokes the enter event and performs additional actions._ExitEvent()
Invokes the exit event and performs additional actions._Reset()
Resets the trigger state.OnTriggerEnter(Collider collision)
Handles the trigger enter event and checks for conditions to trigger events.OnTriggerExit(Collider collision)
Handles the trigger exit event and checks for conditions to trigger events.IsAcceptable(Collider collision, bool isExit = false)
Checks if the collision is acceptable for triggering events.