update: debug overlay layout controls

This commit is contained in:
Tom Boullay
2026-05-01 23:39:04 +02:00
parent 1a783f1867
commit eef39ab53d
20 changed files with 581 additions and 209 deletions
@@ -115,6 +115,18 @@ export function InteractableObject(
}, []);
const setupInteractionDebugFolder = useCallback((folder: GUI) => {
const debug = Debug.getInstance();
const controls = {
showInteractionSpheres: debug.getShowInteractionSpheres(),
};
folder
.add(controls, "showInteractionSpheres")
.name("Interaction Spheres")
.onChange((value: boolean) => {
debug.setShowInteractionSpheres(value);
});
folder
.add({ radius: INTERACTION_RADIUS }, "radius")
.name("Interaction radius")