Page 1 of 1

How to know if a static object can be moved pass by projectiles?

Posted: Fri Feb 28, 2020 3:47 am
by NearHuscarl
Some static objects like MetalPla__, bullets can go pass them, some objects are not like Concrete__, Stone__.... Is there any easy way to know that property in script?

EDIT: Nvm I found it. it's IObject.GetCollisionFilter().BlockExplosions which return true for those objects that bullets can pass through, false otherwise

Re: How to know if a static object can be moved pass by projectiles?

Posted: Tue Mar 03, 2020 5:55 pm
by Gurt
You have the IObject.GetCollisionFilter().ProjectileHit property you can look at.

Re: How to know if a static object can be moved pass by projectiles?

Posted: Wed Mar 04, 2020 11:58 am
by NearHuscarl
Sorry, I was not being clear. Please have a look at this

Re: How to know if a static object can be moved pass by projectiles?

Posted: Sun Mar 22, 2020 12:59 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.