Camera Control Effects
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#
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
CCFX_COLLISION_DETECTIONCAMERA_CONTROLXR_UNITCollision Detection Properties Details
| Property & Type | Display Name | System Type | Default |
|---|---|---|---|
padding: float | Padding Radius | FLOATRANGE SLIDER | 0.5 |
checkMultipleHeights: boolean | Check at Multiple Heights | BOOLTOGGLE | true |
numHeightChecks: float | Number of Checks | FLOATRANGE SLIDER | 3 |
lowestHeightCheck: float | Lowest Height | FLOATRANGE SLIDER | 0.6 |
useGroundDetection: boolean | Use Ground Detection | BOOLTOGGLE | true |
viewerHeight: float | Viewer Height | FLOATRANGE SLIDER | 1.6 |