struct

LaserBeamComponent

Module
Game
Header
#include "Game/Components/LaserBeamComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Properties

TypeNameDescription
Vec3directionLaser direction (local space, will be transformed by entity rotation) Default Vec3(0, 0, 1).
floatmaxLengthLength settings Default 100.0f.
floatwidthVisual settings Default 0.05f.
Vec3colorRGB color Default Vec3(1, 0, 0).
floatintensityHDR intensity for bloom Default 5.0f.
boolfadeAtEndFade settings Default true.
floatfadeStartPercentStart fading at this % of length Default 0.8f.
booluseRaycastPhysics settings Default true.
uint32_tlayerMaskWhich layers to hit Default 0xFFFFFFFF.
boolhitSomethingRuntime state (updated by system) Default false.
Vec3hitPointDefault Vec3(0, 0, 0).
Vec3hitNormalDefault Vec3(0, 1, 0).
floathitDistanceDefault 0.0f.
uint32_thitBodyIDDefault 0.
boolenabledRendering options Default true.
booldepthTestDefault true.
booldrawHitPointDefault false.

Public functions

ReturnsNameDescription
floatGetActualLengthHelper to get actual length (either maxLength or hitDistance)
Vec4GetHDRColorGet color with intensity as Vec4 (alpha = 1)
Vec4GetColorAtGet color at position t (0.0 to 1.0 along beam)

Function details

GetActualLength

C++
float GetActualLength() const

Helper to get actual length (either maxLength or hitDistance)

GetHDRColor

C++
Vec4 GetHDRColor() const

Get color with intensity as Vec4 (alpha = 1)

GetColorAt

C++
Vec4 GetColorAt(float t) const

Get color at position t (0.0 to 1.0 along beam)

Generated from Game/Components/LaserBeamComponent.h via game.json · Nov 5, 2026Version 1.0.0