Skip to content

Adds debug draw point#4165

Merged
flaxtechnology merged 3 commits into
FlaxEngine:masterfrom
TyGrze:draw-debug-point
Jun 30, 2026
Merged

Adds debug draw point#4165
flaxtechnology merged 3 commits into
FlaxEngine:masterfrom
TyGrze:draw-debug-point

Conversation

@TyGrze

@TyGrze TyGrze commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Problem

closes #4133
"[Request]: DebugDraw.DrawPoint() method to draw a point in 3D space"
See that post for more info.

Solution

Copies DebugDraw::DrawCircle
Removes normal param and uses a normal calculated from the cameras LastViewPosition
Builds a filled disc as a triangle fan from the center over the transformed unit circle points

Testing

  • Built the editor (Linux x64, Development).
  • Edited cpp scipt in one of my projects to use both the Debug::DrawPoint and macro DEBUG_DRAW_POINT
DebugDraw::DrawPoint(TurretBase->GetPosition(), 15.f, Color::Red, 0, false);
DEBUG_DRAW_POINT(TurretBase->GetPosition() + (Vector3::Up * 20.f), 25.f, Color::Green, 0.1f, true);
  • Used multiple colors, radiuses, durations, and depth option
  • Confirmed the rendering looked correct from all angels.
image

TyGrze added 3 commits June 26, 2026 13:01
closes FlaxEngine#4133

Signed-off-by: Tyler Gregorcyk <tyler@gregorcyk.com>
Signed-off-by: Tyler Gregorcyk <tyler@gregorcyk.com>
Signed-off-by: Tyler Gregorcyk <tyler@gregorcyk.com>
@TyGrze TyGrze changed the title Draw debug point Add draw debug point Jun 26, 2026
@TyGrze TyGrze changed the title Add draw debug point Adds Debug Draw Point Jun 26, 2026
@TyGrze TyGrze changed the title Adds Debug Draw Point Adds debug draw point Jun 26, 2026
@mafiesto4 mafiesto4 added enhancement New feature or request graphics labels Jun 29, 2026
@mafiesto4 mafiesto4 added this to the 1.13 milestone Jun 29, 2026
@flaxtechnology flaxtechnology merged commit 0cfface into FlaxEngine:master Jun 30, 2026
11 checks passed
flaxtechnology pushed a commit that referenced this pull request Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request graphics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: DebugDraw.DrawPoint() method to draw a point in 3D space

3 participants