This page is not available in the language you have chosen. It will be displayed in English by default. If you would like to view it in a different language, you can try selecting another language.
Description
Returns the closest point intersection of a ray with another ray
Information
| Plugin | RigVM |
| Category | Math|Ray |
| Tags | Closest,Ray,Cross |
| Type | FRigVMFunction_MathRayIntersectRay |
Inputs
| Name | Description | Permitted Types | Default Value |
|---|---|---|---|
| A | The first ray to intersect | Ray | (Origin=(X=0.000000,Y=0.000000,Z=0.000000),Direction=(X=0.000000,Y=0.000000,Z=1.000000)) |
| B | The second ray to intersect | Ray | (Origin=(X=0.000000,Y=0.000000,Z=0.000000),Direction=(X=0.000000,Y=0.000000,Z=1.000000)) |
Outputs
| Name | Description | Permitted Types | Default Value |
|---|---|---|---|
| Result | The resulting intersection position. This is either on the rays themselves or at the closest position between the two. | Vector | |
| Distance | The distance between the two rays (or 0 if they touch) | float | |
| RatioA | The ratio on the first ray at the intersection | float | |
| RatioB | The ratio on the second ray at the intersection | float |