unreal.RigVMFunction_MathRayIntersectRay

class unreal.RigVMFunction_MathRayIntersectRay(a: Ray = Ellipsis, b: Ray = Ellipsis, result: Vector = Ellipsis, distance: float = 0.0, ratio_a: float = 0.0, ratio_b: float = 0.0)

Bases: RigVMFunction_MathRayBase

Returns the closest point intersection of a ray with another ray

C++ Source:

  • Plugin: RigVM

  • Module: RigVM

  • File: RigVMFunction_MathRay.h

Editor Properties: (see get_editor_property/set_editor_property)

  • a (Ray): [Read-Write] The first ray to intersect

  • b (Ray): [Read-Write] The second ray to intersect

  • distance (float): [Read-Write] The distance between the two rays (or 0 if they touch)

  • ratio_a (float): [Read-Write] The ratio on the first ray at the intersection

  • ratio_b (float): [Read-Write] The ratio on the second ray at the intersection

  • result (Vector): [Read-Write] The resulting intersection position. This is either on the rays themselves or at the closest position between the two.

property a: Ray

[Read-Write] The first ray to intersect

Type:

(Ray)

property b: Ray

[Read-Write] The second ray to intersect

Type:

(Ray)

property distance: float

[Read-Only] The distance between the two rays (or 0 if they touch)

Type:

(float)

property ratio_a: float

[Read-Only] The ratio on the first ray at the intersection

Type:

(float)

property ratio_b: float

[Read-Only] The ratio on the second ray at the intersection

Type:

(float)

property result: Vector

[Read-Only] The resulting intersection position. This is either on the rays themselves or at the closest position between the two.

Type:

(Vector)