IfFacingCamera
IfFacingCamera(
props
):null
|Element
Guard that only renders its children into the scene if the camera is facing the object. Calculation is based on the provided angle and direction.
props
FacingCameraProps
ReactNode
The ReactNode elements to conditionally render.
Vector3 Direction vector to check against the camera's facing direction.
anglenumber
The angle in radians to determine visibility. Defaults to Math.PI / 2
(90 degrees).
Returns
null
| Element