Documentation / Node reference / code nodes

code/Ray

A ray: a starting point and a direction to travel in.

Geometry

The hand-built form of what code/CursorRay produces from the pointer, for rays that come from somewhere else: straight down from an object to find the ground, along an axis to probe a plane, and so on. Ray is its own connector type, so a Vector3 will not wire into a ray input and a ray will not wire into a plane input. The direction is used as given and is not normalized, which matters if you go on to measure a distance along it.

Parameters

Name Type What it does
origin Vector3 Where the ray starts, in world space.
direction Vector3 Which way it travels. Not normalized: it is used exactly as given.

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.