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_MathRayBaseReturns 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 intersectb(Ray): [Read-Write] The second ray to intersectdistance(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 intersectionratio_b(float): [Read-Write] The ratio on the second ray at the intersectionresult(Vector): [Read-Write] The resulting intersection position. This is either on the rays themselves or at the closest position between the two.