I keep pushing forward on adding to the space shooter tutorial. I now have a weapon pickup and a health pickup that spawn when an asteroid is destroyed. The problem is the shots fired from my ship collide with the pickups and sends both the shot and the pickup flying in random directions. I’ve attached this script to the shot:
void OnTriggerEnter (Collider other) {
if (other.tag == "Capsule") {
return;
}
}
So what am I doing wrong?