'How to detect if 90% of body collide in Godot 2d

I want to change position of player which is rotating when it is 90% collide with door



Solution 1:[1]

You can simply use distance_to() or distance_squared_to() and get the position between object a and the area position

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 trien