Splash Effect After Rigid Body Collision with Static Body

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

I have a rigid body that looks like a drop of water. When the rigid body has a collision with a static body I want to play a splash animation on the sprite of the rigid body. However I cannot seem to get notified when the rigid body is colliding with the static body. I turned on ContactMonitor and set Contacts to 1 on the rigid body. I am also intercepting the body_entered signal of the rigid body. Right now when the rigid body hits the static body, the rigid body is bouncing off and body_entered never gets called.

How can I setup my rigid body and static body to get notified of the collision?

Cannot reproduce. It works exactly as you described: enable “Contact Monitor” on the RigidBody, set “Contacts Reported” to (at least) 1 and connect it’s body_entered-signal to a callback. Can you provide an example project?

njamster | 2020-04-12 11:56