I made a simple script to detect collisions, but it doesn’t appear to be working. The collision doesn’t seem to be acknowledged whatsoever.
using UnityEngine;
using System.Collections;
public class Pickup : MonoBehaviour {
// Update is called once per frame
void onCollisionEnterEnter (Collision col){
if(col.transform.tag.Contains("Weapon")){
Debug.Log ("Poke");
}
}
}
Both the objects have colliders and rigidbodies. I cant seem to figure out why this isnt working. onTriggerEnter doesnt work either, even if one of the objects is set to be a trigger.
character-
http://imgur.com/1FmftmT