|
Hi,... I'm new to unity .This is my first 2D game project. I'm using two prefab object 1) DropObject 2) HitObject 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.
(comments are locked)
|
|
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. Yeah , I've attached rigidbody component to both objects and both prefab objects are GUITexture Objects....
Mar 11 '11 at 07:48 AM
Dinesh Balu
(comments are locked)
|
