Using javascript, I was experimenting with OnTrigger functions with a trigger game object, I thought about triggering another gameobject to add force. Problem is, I don’t understand how it would work with a OnTriggerEnter function after adding a “if” statement for identifying a tag or gameobject to detect.
How does one achieve this when using two separate OnTriggers like Enter and Exit.
Does that mean I have to use a function update
if I don’t create another separate script for the game object that has add force?
Thanks.