I have my player being moved along a path using Vector3.Lerp, but whenever it enters a trigger collider nothing happens.
I have tried putting the rigidbody on the player and the target, as well as putting the OnTriggerEnter function on both objects. Is this something to do with the fact that I’m using Lerp to move the player?
Actually, a trigger can only detect rigidbodies or CharacterControllers - simple colliders aren’t detected. But the show can go on: add a kinematic rigidbody to the player, and the trigger magically will detect it even when moved via Lerp. The OnTrigger functions may be placed in the player or the trigger (or both) - the only difference is what’s passed as the other argument: it’s the player collider for a script attached to the trigger, and the trigger collider in a script attached to the player.