simvx.core.helpers.raycast¶
Raycasting helpers: screen-to-ray and ray-sphere intersection.
Module Contents¶
Functions¶
Convert a screen pixel coordinate to a world-space ray (origin, direction). |
|
Ray-sphere intersection. Returns distance t or None if no hit. |