RayQueryResult#
- class omni.kit.raycast.query.RayQueryResult#
Bases:
pybind11_objectMethods
__init__(self)Create a new RayQueryResult
get_target_usd_path(self)This function returns the usd path of geometry that was hit.
Attributes
position of hit
t value of hit position
instance id
normal of geometry at hit point
primitive id
indicates whether result is valid
- __init__( ) None#
Create a new RayQueryResult
- get_target_usd_path( ) str#
This function returns the usd path of geometry that was hit.
- Returns:
Usd path of object that is the target, or an empty string if nothing was hit
- Return type:
str
- property hit_position#
position of hit
- property hit_t#
t value of hit position
- property instance_id#
instance id
- property normal#
normal of geometry at hit point
- property primitive_id#
primitive id
- property valid#
indicates whether result is valid