- Home /
Question by
ndrunity · Jan 26, 2019 at 11:22 AM ·
collisiononcollisionenter
Collision of two Gameobjects
Is it possible to detect how many GameObjects collide? I havea long cube that has an OnCollisionEnter method. And on this long cube I will put one, two or three cubes. So I want different events when theres one cube or two cubes on top of the long cube. How could I do this? I already tried it with collision.contactCount == 2 but it won't work. Is there a better way?
Comment