Question by
Cynicrelief · Dec 05, 2016 at 06:08 PM ·
controllercolliderstriggers
Trying to get controller to trigger OnTriggerEnter, no avail
Here's my script below.
Nothing actually happens when I enter the triggering collider
I have a rigid body and collider on both the trigger collider and the controller
I've looked up other answers but their scripts haven't helped... ideas?
using UnityEngine; using System.Collections;
public class ColliderTrigger : MonoBehaviour {
void OnTriggerEnter (Collider other) {
if (other.gameObject.name == "CustomThirdPersonCharacterController") {
Application.LoadLevel ("EndGameScreen");
}
{
}
} }
Comment
Have you looked at the table at the bottom of this page?
Good link and thanks! What I needed to do was set "is kinematic" on both rigidbodies