RayQueryResult#

class omni.kit.raycast.query.RayQueryResult#

Bases: pybind11_object

Methods

__init__(self)

Create a new RayQueryResult

get_target_usd_path(self)

This function returns the usd path of geometry that was hit.

Attributes

hit_position

position of hit

hit_t

t value of hit position

instance_id

instance id

normal

normal of geometry at hit point

primitive_id

primitive id

valid

indicates whether result is valid

__init__(
self: omni.kit.raycast.query._omni_kit_raycast_query.RayQueryResult,
) None#

Create a new RayQueryResult

get_target_usd_path(
self: omni.kit.raycast.query._omni_kit_raycast_query.RayQueryResult,
) 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