API ReferenceGE Extensionsflowgraphnodesdebug
Camera Mouse Raycast
- **Name:** `Camera Mouse Raycast`
Overview
- Name:
Camera Mouse Raycast - Category:
repeat_instant - File:
lua/ge/extensions/flowgraph/nodes/debug/cameraMouseRayCast.lua - Pattern: Class-based (
C = {}, returns_flowgraph_createNode(C))
Description
Fires a raycast from the camera to the mouse cursor position each frame. Outputs hit information including the object, position, normal, and click state. May be superseded by the mouse tool node.
Pin Schema
Output Pins
| Pin | Type | Description |
|---|---|---|
clicking | flow (impulse) | Fires if mouse is clicked (left button, not captured by ImGui) |
hold | flow | Active while mouse is held down |
objID | number | ID of the hit object |
objName | string | Name of the hit object |
distance | number (hidden) | Distance to the hit point |
pos | vec3 (hidden) | World position of the hit |
normal | vec3 (hidden) | Surface normal at the hit |
face | number (hidden) | Face index of the hit |
Behavior
work()callscameraMouseRayCast(). If a hit is found, populates all output pins with hit data. Click detection usesim.IsMouseClicked(0)filtered by!im.GetIO().WantCaptureMouse.- If no hit, all data pins are set to
niland flow pins tofalse.
Key APIs Used
cameraMouseRayCast()ui_imgui.IsMouseClicked(),ui_imgui.IsMouseDown(),ui_imgui.GetIO()
Tags
#flowgraph #node #ge #debug #raycast #mouse
Additional Exports
-
name-string- (see source) -
color-any- (see source) -
icon-any- (see source) -
description-string- (see source) -
category-string- (see source) -
todo-string- (see source) -
pinSchema-table- (see source) -
tags-table- (see source)
See Also
- AI Debug Display - Related reference
- Comment - Related reference
- Debug Cylinder - Related reference
- FlowGraph Guide - Guide