unit 9 project

on collision enter

the video above shows you how I use the on collision enter function in the metroid themed space shooter that I made last year for our final project. In the video you see that when a enemy ship or asteroid collides with the player bolt it will destroy the ship or asteroid also it is made so that if the ship or asteroid collides with an enemy player both the ship, asteroid, and player will be destroyed.

 

raycasting

In the video you will see that the cube has a raycast attached to it and that raycast is coded to only respond to only respond to a object that has its layer set to player if you watch the video you will see how that works in the code and in the game scene.

Leave a Reply

Your email address will not be published. Required fields are marked *