,Basically I have a spaceship and an enemy.
When my spaceship comes in to contact with the enemy i want them to both be destroyed.
However, whats happening is, the player is just going straight through the enemy.
Any solution would be greatly appreciated!
(I’ve attached the scripts i used for both the enemy and the spaceship)
alt text
A few things could be the issue here. For us to help you it would probably be useful to post a screenshot of your collider component. In the meantime make sure that your collider is set to IsTrigger (As you are checking for OnTriggerEnter). Also try some debugging like seeing if the collision is triggered by writing Debug.Log("Ship was hit")
inside of your OnTriggerEnter function
@AcePilot10
Hey thanks for the help. Ive just attached the screenshots.
I tried adding in the “Debug” but I dont think anything is being triggered.