Page 1 of 1

Add CollisionFilter.InteractProjectiles

Posted: Fri Feb 28, 2020 6:06 am
by NearHuscarl
I want to know if projectiles can hit AND pass through an object (for example Metal Plate) to filter collision. I can use CollisionFilter.BlockExplosions as a workaround but it doesn't cover some cases like DinerBooth that can block projectiles but cannot block explosions.

Re: Add CollisionFilter.BlockProjectiles

Posted: Sat Feb 29, 2020 5:00 am
by Danger Ross
Please also add this feature to raycasting. the same issue exists there. I have no idea if a raycast hit object will block a projectile or hit and pass through it.

Re: Add CollisionFilter.InteractProjectiles

Posted: Sun Mar 22, 2020 12:58 pm
by Gurt
Added CollisionFilter.AbsorbProjectile and RayCastFilterMode AbsorbProjectile after v.1.3.4.
AbsorbProjectile indicates if a projectile will be absorbed (removed) when hitting an object or not. Use together with the ProjectileHit fiter option.