Saturday, October 15, 2011

The bomb attaching interface

We implemented the bomb placement mechanism this week. It is done through converting the screen point into a ray, and then does the ray casting test to determine the object surface that the player clicked.


The bomb attached to the scene objects.

There is an issue about the colliders of the bombs. Since we are placing them onto the surface of the objects, the bombs will push the objects away if the colliders of the bombs are on. So we wrote a script to turn them of once the bomb is instantiated. 

No comments:

Post a Comment