Hey, thanks for reading my issue, I really hope that you might be able to help me.
I’m trying to make 2 objects pass through each other. And making one of the two detect that it is inside the other one. I create a very simple scene, with a cube (with a box collider, trigger checked, and a kinematic rigidbody) and a sphere (with a sphere collider, non-trigger, and a rigidbody). When I run the game, the sphere clearly falls through the cube. I have a script attached to the cube, which should detect the entering of the sphere. The script simply states:
using UnityEngine;
using System.Collections;
public class Collide : MonoBehaviour {
void TriggerEnter(Collider col){
Debug.Log ("Object Collided");
}
}
I started trying this myself, but after it didn’t work I looked up some tutorials, all stating that this was all I had to do. After trying for hours I cannot seem to get this to work. Did I miss something obvious? Is this some sort of bug? I’m quite new to Unity so any help is very much appreciated.
-Blacklink