Personal Update:
Dev Update:
Tips from your Uncle Eck:
Comments
The different layers might work for me. I'm not sure if I want friendly fire or not. If not, I may look more deeply into that idea.
Yeah, turning off "the" collider won't work for me. Right now my ships are composed up of several different cubes each with their own collider. Plus I hope to support shields that cover different arcs which would have their own colliders. I could turn off all the colliders for the firing ship, and then turn them back on, but that seems like more hassle than I want to deal with.
Thanks for the ideas! :)
Oh, weird, thought popped into my head, rather than turning off the collider for the ship, just turn off the collider for the bullet. You could have a trigger volume on the root of the ship, and then listen for an OnLeave message and turn the collider on.
Though I recall that I had some oddball issues with OnLeave not always firing 100% in older versions of Unity.
(And I wouldn't get hung up on it anyway, sometimes my brain just gets hung up on a problem and works on it in it's spare time without telling me.)
You could also try messing with layers for your bullets, and tune it so that the each faction has it's own bullet layer, that can only hit the enemy layer. That has some side effects though that may not be worth the pain.
(I did this for a tower defense game, but that obviously works better there)
I haven't looked if there is a way to dynamically change the layer an object is on, but that might also work, you could move the shooting ship to a layer that doesn't interact with bullets, then move it back after the attack is finished. (Or just turn off the shooter's collider, that's probably simpler, and less pain.)