Em a newbie in game development,specifically in unity game development. I’m experiencing an issue at the end of the space shooter game. The asteroids explodes the vehicle_enemySapceship upon contact with each other. I’m following the SPACE SHOOTER game tutorial from unity official website. Kindly tell me how to resolve this issue.p.s this is my first ever question on the unity community forums.
hello. The query is resolved finally. Actually in real physics, the asteroid explodes everything coming on its way…but i want opposite manner.
So come to the point! Actually i didnot put a tag in ‘DestroyByContactSecond’ script (it’s associated with the Enemy Ship,while the DestroyByContact script was specifically for Asteroids). The specified tag was:
void OnTriggerEnter(Collider other)
if (other.tag == “Enemy”)