Hi,... I'm new to unity .This is my first 2D game project.
I'm using two prefab object 1) DropObject 2) HitObject
Both the DropObject and HitObject have the Z value as 0.
What do I do to Detect Collision between these Objects.
asked Mar 11 '11 at 07:13 AM
You need to attach a rigidboy to one of the cubes. OnCollisionEnter and OnTriggerEnter only fires if one of the colliders is a rigidboy.
You can turn off the gravity in the rigidbody if it is interfering with your logic.
answered Mar 11 '11 at 07:35 AM