Ray#

class omni.kit.raycast.query.Ray#

Bases: pybind11_object

Ray represents a ray in 3D space.

Methods

__init__(self, origin, direction[, min_t, ...])

A ray is defined by an origin point, a direction vector, and minimum and maximum distances along the ray.

Attributes

forward

direction of the ray

max_t

t value at end of ray

min_t

t value of start of ray

origin

origin of the ray

__init__(
self: omni.kit.raycast.query._omni_kit_raycast_query.Ray,
origin: object,
direction: object,
min_t: float = 0.0,
max_t: float = inf,
adjust_for_section: bool = True,
) None#

A ray is defined by an origin point, a direction vector, and minimum and maximum distances along the ray. The ray can optionally be adjusted to fit within a specific section of space.

Parameters:
  • origin (Vec3) – The origin point of the ray.

  • direction (Vec3) – The direction vector of the ray.

  • min_t (float, optional) – The minimum distance along the ray. Defaults to 0.0.

  • max_t (float, optional) – The maximum distance along the ray. Defaults to positive infinity.

  • adjust_for_section (bool, optional) – Whether to adjust the ray to fit within a specific section of space. Defaults to True.

property forward#

direction of the ray

property max_t#

t value at end of ray

property min_t#

t value of start of ray

property origin#

origin of the ray