The line the camera sweeps and the clearance it keeps.
| Property |
Type |
Default value |
Description |
asEntity? |
Entity | null |
undefined |
Whose match scope the sweep reads. |
cameraCollision? |
boolean |
true |
Whether the sweep also stops at the drawn copies that collide with the camera, the plants an InstancedModel draws with cameraCollision, which no physics body stands for. Off for a sweep that places the aim, such as the follow camera’s shoulder, which a leaf beside it must not move. |
clearance? |
number |
0.3 |
Metres kept above the drawn ground. |
direction |
Vector3Like |
undefined |
The way it sweeps, a unit vector. |
from |
Vector3Like |
undefined |
Where the eye’s sweep starts, such as the aim. |
margin? |
number |
0.2 |
The sphere’s radius. |
maxDistance |
number |
undefined |
Metres it wants to reach, a finite number. |