Nebula
Containers

PortalCrossing

Where a cast went through an open portal (docs/portals.md D32): the link, the scope it left and the scope it entered, how far along it the plane was met, and the cast as it continues on the far side, as a point in the far scope's scene (...

generated from the sources
public readonly struct PortalCrossing

Where a cast went through an open portal (docs/portals.md D32): the link, the scope it left and the scope it entered, how far along it the plane was met, and the cast as it continues on the far side, as a point in the far scope's scene (where the cast's reference point crossed the plane) and the direction there. Reported by PortalQueries.Raycast.

Properties

LinkId

public ulong LinkId { get; }

The id of the link the cast went through; 0 when it went through none.

FromScope

public ulong FromScope { get; }

The scope the cast left.

ToScope

public ulong ToScope { get; }

The scope the cast entered.

Distance

public float Distance { get; }

How far along the cast the plane lay, in meters.

FarPoint

public Vector3 FarPoint { get; }

Where the cast met the plane, as a point in ToScope's scene.

FarDirection

public Vector3 FarDirection { get; }

The cast's direction in ToScope's scene (unit length).

Crossed

public bool Crossed { get; }

Whether the cast went through a portal.

None

public static PortalCrossing None { get; }

The cast went through no portal.

On this page