I have a ship that I want to shoot projectiles. The ship has a rigid body but the projectiles do not. The projectiles are child objects of the ship, and I want the projectiles to not be able to detect the ship that fires them at all. is there a way to check for that with a script.
- Why projectiles is a ship childs? Сannon - yes, but projectiles…
- You do not need scripts for ignoring colisions, you can simply put them to another collision layer.
The game is 2D so I didn’t think it mattered. How do you put objects on different collision layers?
The projectiles should definitely not be children of the ship, and they definitely should have rigidbodies.
–Eric
Oh ok thanks for the help. I found the collision layer editor.