I'm trying to set up a script where upon contact with the player, a crystal will start to emit particles. However, it seems like nothing is happening when they collide. Is there something wrong with this script I wrote?
asked Jun 20 '10 at 08:10 PM
There is nothing "wrong" with the script you wrote. There are, however, obviously issues with the how the Game Objects are interacting when you run your game.
The console print idea is valid enough for debugging within the current Unity iPhone product. I would start with something simpler, however:
If you are seeing no Collision messages, then you are (most likely) missing a Rigidbody for one of the two colliding objects.
Check the matrix at the bottom -- that will tell you how Collision and Trigger messages are generated.
Lastly, once you get past that issue, make sure to disable or otherwise remove print / Debug.Log messages from your final release product. They are unkind to performance.
answered Jun 21 '10 at 06:16 PM
arrange ur scripts, be smart, put prints! Does it print on collision?
answered Jun 20 '10 at 08:17 PM