API ReferenceGE Extensionsflowgraphnodesdebug
Debug Prism
- **Name:** `Debug Prism`
Overview
- Name:
Debug Prism - Category:
repeat_instant - File:
lua/ge/extensions/flowgraph/nodes/debug/debugPrism.lua - Pattern: Class-based (
C = {}, returns_flowgraph_createNode(C))
Description
Draws a debug square prism (rectangular tube) in the 3D world between two points, with independent width/height at each end. Renders every frame while active.
Pin Schema
Input Pins
| Pin | Type | Default | Description |
|---|---|---|---|
widthA | number | 1 (hardcoded) | Width at point A |
heightA | number | 1 (hardcoded) | Height at point A |
posA | vec3 | - | Start position |
widthB | number | 1 (hardcoded) | Width at point B |
heightB | number | 1 (hardcoded) | Height at point B |
posB | vec3 | - | End position |
color | color (hidden, hardcoded) | {0.91, 0.05, 0.48, 0.5} | Prism color (default pink) |
Behavior
work()checks that both positions are provided. CreatesPoint2Fdimensions for each end and callsdebugDrawer:drawSquarePrism(posA, posB, sizeA, sizeB, color).- Supports tapering prisms by using different width/height values at each end.
Key APIs Used
debugDrawer:drawSquarePrism(vec3, vec3, Point2F, Point2F, colorF)
Tags
#flowgraph #node #ge #debug #draw #prism
Additional Exports
init()
-
name-string- (see source) -
icon-any- (see source) -
description-string- (see source) -
category-string- (see source) -
pinSchema-table- (see source) -
tags-table- (see source)
See Also
- AI Debug Display - Related reference
- Camera Mouse Raycast - Related reference
- Comment - Related reference
- FlowGraph Guide - Guide