simvx.graphics.picking.raycast

CPU-side raycaster for entity intersection tests.

Module Contents

Functions

ray_aabb_intersect

Test ray-AABB intersection. Returns (hit, t_near).

Data

API

simvx.graphics.picking.raycast.__all__

[‘ray_aabb_intersect’]

simvx.graphics.picking.raycast.ray_aabb_intersect(origin: numpy.ndarray, direction: numpy.ndarray, aabb_min: numpy.ndarray, aabb_max: numpy.ndarray) tuple[bool, float]

Test ray-AABB intersection. Returns (hit, t_near).