Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my game, I am creating two game objects at same position using Instantiate statement. Each generated object has box collider attached.

So I want to detect collision between them so I write following code.

void OnCollisionStay(Collision collisionInfo){
   print("on collision stay");

But this statement not called. I generate two object using following code.

BallUtility.AddNormalCommonBall (normalBallPref,;
BallUtility.AddNormalCommonBall (normalBallPref,;

I need help in collision detection. I already post question in unity forum but I didn't get any reply from there.

share|improve this question
up vote 3 down vote accepted

Collision events will only be detected under specific circumstances.

Each collider can be considered to have these relevant properties:

  1. Is a RigidBody (or RigidBody2D) attached to it's GameObject, if not it is considered Static.
  2. If it has a RigidBody, is it marked Kinematic?
  3. Is the Collider marked Trigger?

The circumstances under which collisions are detected are summarized in this table: enter image description here


share|improve this answer
Thanks for your suggestion. Now I detect my collision method running. – Siddharth Feb 1 '14 at 8:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.