Skip to main content
Version: 0.11.0

UeCameraHelper

A helper class for visualizing a 3D camera's view frustum in world space. Useful for debugging projection matrices, visibility, and frustum culling logic. This helper is actually useful only when viewing the scene from a second camera

Constructor​

new UeCameraHelper(camera, color = c_yellow)

Inherits from UeLineSegments

Properties​

NameTypeDescription
cameraObjectReference to the associated camera.
colorGM.ColorLine color of the frustum (c_yellow by default).

Methods​

MethodReturnsDescription
.update()selfUpdates the helper's position and rotation to align with the camera's world matrix.
.setColors(newCol)selfSets a new line color and rebuilds the geometry.
.dispose()selfFrees GPU resources used by the helper.