Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Add CollisionFilter.InteractProjectiles

Here you can find ScriptAPI suggestions implemented in the game.
Forum rules
By using the forum you agree to the following rules.
Locked
NearHuscarl
Superfighter
Superfighter
Posts: 97
Joined: Thu Feb 07, 2019 4:36 am

Add CollisionFilter.InteractProjectiles

Post by NearHuscarl » Fri Feb 28, 2020 6:06 am

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.
Last edited by NearHuscarl on Wed Mar 04, 2020 11:40 am, edited 1 time in total.
1 x
Image

User avatar
Danger Ross
Superfighter
Superfighter
Posts: 154
Joined: Thu Mar 31, 2016 12:56 am
Title: Dangerous
SFD Alias: Danger Ross
Started SFD: 14 june 2012 (launch day)
Location: California
Gender:
Age: 23

Post by Danger Ross » Sat Feb 29, 2020 5:00 am

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.
1 x
sorry bucko, you can't punch with swords 8-)

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1884
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 34

Post by Gurt » Sun Mar 22, 2020 12:58 pm

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.
0 x
Gurt

Locked