ShowIfFacingCamera
ShowIfFacingCamera(
props
):Element
Guard that only shows its children by toggling their visibility if the camera is facing the object. Calculation is based on the provided angle and direction.
props
FacingCameraProps
ReactNode
The ReactNode elements to conditionally show.
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
Element