2 Rectangle CollisionShape2D bodies getting attached with each other on collision

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

I have 2 CollisionShape2D bodies with rectangle shapes. One body’s rotation_degree is 0 and another body’s rotation_degree is more than 20 degree. When this 2 bodies collide, they are getting attach with each other.
What to do so that they would not get attach with each other ?

Can anyone please answer this question ? I got stuck because of this problem.
Thanks in advance.

abhinav | 2021-01-01 18:02