- Home /
Question by
Tofudude624 · Dec 20, 2011 at 07:44 AM ·
collisioncharactercontroller
Colliding with a character controller?
Hello. How to I detect when a trigger (with a certain tag) enters a character controller? Thanks
Comment
Best Answer
Answer by syclamoth · Dec 20, 2011 at 08:11 AM
void OnTriggerEnter(Collider other)
{
if(other.gameObject.tag == "WhateverTag")
{
// A thing got detected!
}
}
This is pretty straightforward.