Temporarily Ignore Physics?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Gamepro5

A rigidbody projectile comes out of the center of a kinematic body, is there any way to make the projectile ignore the kinematic body so it can have a predictable trajectory but once it has been shot still interacts with the kinematic body?

I could use a physics mask but that would make them never interact even after the projectile has been fired, and I don’t know how it would behave with other players using the same player tscn file.

:bust_in_silhouette: Reply From: kidscancode

Do you want the bullet to harm the player that shoots it? If you’re just concerned with it ignoring the shooter but still colliding with other players, try using add_collision_exception_with():