I’m trying to get the prefab FPSController player to trigger when entering a box collider.
I’ve created a script with the following;
void onTriggerEnter(Collider col) {
if(col.gameObject.tag == "Player") {
Debug.Log ("Player");
}
Debug.Log ("notPlayer");
}
and a box which is quite a large size, away from the player, with the script added as a component and a box collider with ‘is trigger’ checked. When walking into the box nothing happens.
Am I missing something obvious?