Nebula
Containers

PortalHitFlags

What a PortalHit is besides a collider (docs/portals.md D32, D33).

generated from the sources
[Flags]
public enum PortalHitFlags

What a PortalHit is besides a collider (docs/portals.md D32, D33).

Members

NameValueDescription
None0An ordinary hit on a collider of the scope in PortalHit.Scope.
Aperture1The cast reached a portal's aperture and stopped there: the hit is on the plane of the cross-section, and PortalHit.Collider is the aperture collider. The aperture was closed for the asker (not open, or not the asker's party's link, or an observation-only portal), or, with DepthLimit, open but a second portal deep.
Truncated2The cast left what this process knows: the far scope is on another worker and only its band is here (ghost proxies of its bodies), and the cast went past the band without hitting anything there. It is not a miss: nothing is known beyond PortalHit.PointInScope. PortalHit.Collider and PortalHit.Entity are null.
ThroughPortal4The hit is in the far scope of a link the cast went through (it is in PortalHit.Scope, not the scope the cast started in).
Rewound8The hit is against the pose the entity had at the query's tick, not the one it has now.
DepthLimit16An Aperture hit at an open link: queries continue through one portal only (docs/portals.md D22).

On this page