trace_ray#
- NyxRenderer.trace_ray(self, origin: gs_nyx.nyx_py_sdk.float3, direction: gs_nyx.nyx_py_sdk.float3, range: gs_nyx.nyx_py_sdk.float2, position_ws: gs_nyx.nyx_py_sdk.float3, scene_ref: gs_nyx.nyx_py_renderer.SceneReference) bool#
Trace a ray against the scene. On hit, fills ‘position_ws’ with the world-space hit position and ‘scene_ref’ with the hit object reference.