Skip to content

Conversation

@Insert-Uncreateive-Name-Here
Copy link
Contributor

When a CollisionPolygon3D is drawn with a concave area, it fails to render the surface of the top and bottom.

Steps to reproduce the bug in the editor:

  1. Create a new scene
  2. Create CollisionPolygon3D
  3. Make sure debug fill is checked in the CollisionPolygon3D inspector.
  4. Add these vertices to the the polygon (0,0), (1,-1), (1,1), (-1, 1), (-1, 0.3).

You should see that only one triangle from the top and bottom of the polygon is drawn and the reset are missing.

When a CollisionPolygon3D is drawn with a concave area, it fails to render the surface of the top and bottom.

Steps to reproduce the bug in the editor:
1. Create a new scene
2. Create CollisionPolygon3D
3. Make sure debug fill is checked in the CollisionPolygon3D inspector.
4. Add these vertices to the the polygon (0,0), (1,-1), (1,1), (-1, 1), (-1, 0.3).

You should see that only one triangle from the top and bottom of the polygon is drawn and the reset are missing.
Copy link
Member

@kleonc kleonc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change is correct, verts are appended to during these iterations.

Before After
Godot_v4 5 1-stable_win64_yHUcpJpq7S godot windows editor dev x86_64_yA6fcwW0SK

@kleonc kleonc modified the milestones: 4.x, 4.6 Nov 1, 2025
@AThousandShips AThousandShips changed the title Fixing CollisionPolygon3D debug shape rendering. Fix CollisionPolygon3D debug shape rendering. Nov 2, 2025
@Repiteo Repiteo merged commit 561bac4 into godotengine:master Nov 4, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 4, 2025

Thanks! Congratulations on your first merged contribution! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants