Camera Control Effects

Published Updated
A suite of built-in camera control effects that manage collision detection, view clamping, automated framing, and player height adjustments.

Camera control effects govern how the viewer's camera, screen framing, or XR viewport interacts with the physical boundaries of the scene.

These effects prevent players from walking through walls, automatically zoom and position the camera to frame objects, or adjust the viewpoint height to match the real-world ground floor.

Camera Collision Detection and Ground Tracking#

Effect<CollisionDetectionEffect>: A camera controller effect that prevents viewer cameras from passing through walls or scene meshes by applying physical radius padding and ground floor height alignment.

The Collision Detection effect wraps the viewer's camera or viewpoint inside a physical collider boundary to prevent clipping through solid scene assets.

It utilizes the collapsible Body Detection section containing padding radius values, the checkMultipleHeights toggle, lowestHeightCheck limits, and numHeightChecks (2 to 10) to compute robust multi-point vertical collision offsets. Ground floor height alignment is handled under Ground Detection, containing the useGroundDetection toggle and the viewerHeight scalar.

Collision Detection

CAMERA_CONTROL.CCFX_COLLISION_DETECTION
Effect
Effect System ID
CCFX_COLLISION_DETECTION
Pipeline Type
CAMERA_CONTROL
Context Type
XR_UNIT

Collision Detection Properties Details

Property & TypeDisplay NameSystem TypeDefault
padding: float
Padding Radius
FLOAT
RANGE SLIDER
0.5
checkMultipleHeights: boolean
Check at Multiple Heights
BOOL
TOGGLE
true
numHeightChecks: float
Number of Checks
FLOAT
RANGE SLIDER
3
lowestHeightCheck: float
Lowest Height
FLOAT
RANGE SLIDER
0.6
useGroundDetection: boolean
Use Ground Detection
BOOL
TOGGLE
true
viewerHeight: float
Viewer Height
FLOAT
RANGE SLIDER
1.6