Hello all,
I am trying to setup collision detection in my scene but it can never seem to work.
Right now, I am controlling a Character object using FirstPerson. I attached a SphereCollider to the object and attatched a BoxCollider to the object it needs to collide with.
When I test it however, it just walks through it.
I then attached this Script to the FirstPerson object:
public class Collisions : MonoBehavior {
void OnCollisionEnter(Collision c) {
Debug.Log("Collide");
}
}
But nothing happens when it should be colliding.
I have now tried attaching a rigid body to the Sphere, and still do not get any response.
Is there anything else I should try?
Thanks.