Projectile to ignore water layer

ChristianWiele

Active member
Hi,

I would like to set up my projectile that it ignores the water layer to shoot objects below the surface, but I don't know how to achieve it. My water surface has a collider. I have set the impact layer to not impact water. If I set the collision mode to collide, the projectile is destroyed on the water surface. If I set the collision mode to ignore, the water layer is ignored, but also any other collider so the projectile passes through my object, and can impact other objects.
I tried adding an IgnoreLayerCollision, but it has no effect.

Regards, Christian
 
Is your project's physics matrix set up to ignore collisions between the projectile layer and the water layer?
 
I just found out that the swimming pack requires the water collider as trigger. So changing the collider to trigger solved the problem.
 
When using a shootable weapon the projectile properties are not retrieved from the actual projectile object. There is a hierarchy so the projectile's impact layer is set from the actual shootable weapon component.
 
Top