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 (...
Nebula · Packages/com.1by3.nebula/Runtime/Containers/PortalQueryTypes.cspublic readonly struct PortalCrossingWhere 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.
PortalAsker
Who is asking a portal query (docs/portals.md D12, D32): the entity whose own colliders the cast skips, and the party whose link it goes through.
PortalFace
One side of a Portal (docs/portals.md D2): a scope, the container the face is fixed in, and a pose, an absolute Double3 position in that scope and a rotation.