Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

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.

Parameter Type
world World
cameraReachOptions CameraReachOptions

number | null