Disable backface collision with ConcavePolygonShape by default

Helps a lot with soft bodies and generally useful to avoid shapes to go
through the ground in certain cases.

Added an option in ConcavePolygonShape to re-enable backface collision
on specific bodies if needed.
This commit is contained in:
PouleyKetchoupp
2021-03-11 18:15:31 -07:00
parent c097ce0c18
commit 7bbd545432
8 changed files with 223 additions and 79 deletions

View File

@@ -28,6 +28,11 @@
</description>
</method>
</methods>
<members>
<member name="backface_collision" type="bool" setter="set_backface_collision_enabled" getter="is_backface_collision_enabled" default="false">
If set to [code]true[/code], collisions occur on both sides of the concave shape faces. Otherwise they occur only along the face normals.
</member>
</members>
<constants>
</constants>
</class>