How to do bounce with kinematic body 3d after it collides with the gridmap?

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

I have a kinematic body 3d and a level with gridmaps. So what I want is that wheneverthe kinematic body collides with the gridmap, it should bounce off. I have tried the bounce method but it bounce very little.

Could you post the code you have tried?

Adam_S | 2020-09-19 17:14

:bust_in_silhouette: Reply From: GreyMiller

Kinematic bodies are not affected by forces. switch them to rigid if possible.
Or detect collisions in code (try using get_contact_count but i’m not sure whether it works with gridmaps) and apply respective changes to velocity