Debug overlay: draw the paths of moving pawns #82
Labels
No labels
assets
bug
duplicate
enhancement
help wanted
invalid
question
testing
ui
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
liamjd/UntitledColonyBuilder#82
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Milestone: Pawns and pathfinding
Part of milestone #4. Depends on #80 and #95.
#95 (debug scatter) is what makes pawns move in-scene, so it has to land first or there is nothing to draw. It replaced #81, which was the original source of movement here.
When the debug panel is open, draw the remaining path of every moving pawn so navigation can be checked by eye. The existing
DebugLayeris aCanvasLayerof labels; path lines are world geometry, so this is a separate node in the 3D scene toggled by the sameGameState.debug_mode_changedsignal.Design:
PathOverlay extends MeshInstance3Dusing anImmediateMeshwith an unshaded, no-depth-test material, redrawn each frame fromPawns.all()and each view'sremaining_path().AC: