mirror of
https://github.com/godotengine/godot.git
synced 2024-12-21 10:25:24 +08:00
eaa84bc682
The previous implementation assumed that the intersection entered or exited a shape when it hit right on the common edge of 2 triangles. However, there is also a case where it just "skirts" the other shape on the outside. To fix this, we added code to check the intersection distance and if the normals of the faces are pointed in the same direction as the intersection or not (e.g. inner product > 0). This handles the case where the intersection line hits the common edge of 2 triangles and skirts the other shape on the outside. Extended code to cover a third case. Fixes #58637. Co-authored-by: OldBelge <StevenGeens@users.noreply.github.com> |
||
---|---|---|
.. | ||
CSGBox3D.xml | ||
CSGCombiner3D.xml | ||
CSGCylinder3D.xml | ||
CSGMesh3D.xml | ||
CSGPolygon3D.xml | ||
CSGPrimitive3D.xml | ||
CSGShape3D.xml | ||
CSGSphere3D.xml | ||
CSGTorus3D.xml |