public void onAnalog(String name, float value, float tpf) {
}
@Override
public void onEvent(String id, MenuItemActivatedEvent<String> event) {
VoxelObjectNode vObject;
Node parent;
DebugNode debug = debugNodes.get(activeGeometry);
if (debug == null) {
debug = new DebugNode(activeGeometry);
debugNodes.put(activeGeometry, debug);
}
gui.showContextMenu(false, activeGeometry);
debug.setLocalTranslation(activeGeometry.getWorldTranslation());
debugNode.attachChild(debug);
switch (event.getItem()) {
case DebugGUI.MENU_SHOW_BOUND:
debug.showBound();
break;
case DebugGUI.MENU_SHOW_CHUNK_BOUNDS:
parent = activeGeometry.getParent();
while (!(parent instanceof VoxelObjectNode))
parent = parent.getParent();
vObject = (VoxelObjectNode) parent;
vObject.showChunkBounds();
break;
case DebugGUI.MENU_SHOW_CHUNK_LODS:
parent = activeGeometry.getParent();
while (!(parent instanceof VoxelObjectNode))
parent = parent.getParent();
vObject = (VoxelObjectNode) parent;
vObject.showChunkLODs();
break;
case DebugGUI.MENU_SHOW_NORMALS:
debug.showNormals();
break;
case DebugGUI.MENU_SHOW_WIREFRAME: