Class CameraRaycast
java.lang.Object
net.raphimc.viabedrock.api.model.CameraRaycast
Float camera traversal and box surface intersections, independent of the renderer's world access.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordEligibility bounds and final ray-hit bounds can differ for custom blocks.static final recordstatic final recordWorld-space hit.static enumNative common pick policies.static interface -
Method Summary
Modifier and TypeMethodDescriptionstatic CameraRaycast.Hitcast(CameraPose.Vector start, CameraPose.Vector end, CameraRaycast.World world) Visits the starting cell and at most 200 subsequent cells, as the native camera query does.
-
Method Details
-
cast
public static CameraRaycast.Hit cast(CameraPose.Vector start, CameraPose.Vector end, CameraRaycast.World world) Visits the starting cell and at most 200 subsequent cells, as the native camera query does. The caller supplies native block geometry, material identities, and per-type pick policies. Fluid surfaces update layer selection but do not become primary camera hits.
-