measureCameraReach
measureCameraReach(
world,cameraReachOptions):number|null
Metres along the sweep the eye may stand, clear of everything by its margin: the first thing a sphere of the margin’s radius meets, which Unreal’s spring arm, Cinemachine’s deoccluder and Roblox’s popper all sweep; with no physics, a ray at every ground’s baked obstacles less the margin. The drawn copies that collide with the camera stop it too. Either way no nearer the ground under each point than its clearance, of every ground’s. Null where the whole line is clear.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
cameraReachOptions |
CameraReachOptions |
Returns
Section titled “Returns”number | null