- Home /
Question by
zacthespack · Jul 29, 2014 at 10:38 AM ·
collision
No collisions being detected
I have two objects that collide with each other, A is moving around the world and B is moved by the user. The collision happens because A bounces off B. However I have:
void OnCollisionEnter(Collision theCollision){
//Debug.Log(“Hit”+ theCollision.gameObject.name);
Debug.Log (theCollision.gameObject.name);
}
in A and this never gets fired.
A is set up like:
B is set up like:
Comment
Best Answer
Answer by T27M · Jul 29, 2014 at 10:47 AM
Heh, I made this mistake ;)
http://docs.unity3d.com/ScriptReference/Collider2D.OnCollisionEnter2D.html
Your answer
Follow this Question
Related Questions
Why is my OnCollisonEnter function not working? 2 Answers
Pixel perfect Collision? 0 Answers
How to calculate the anchor point location, when 2 meshes join by a hinge joint 1 Answer
Detect collision only once when collider hits 2 objects at same time 1 Answer
Enemy Move towards object and hold it and use object 1 Answer