Scripting API

Scripting API

RayHit

Struct in Abyss.Core, from Abyss.Core.

One entity a ray passed through: how far along the ray, and where.

public readonly struct RayHit

Remarks

Laid out as abyss_core::pick::RayHit is, 24 bytes.

Fields

Entity

public readonly ulong Entity

The entity, packed as the engine packs one.

Distance

public readonly float Distance

How far along the ray it was hit, in world units from the ray's origin.

Point

public readonly Vector3 Point

Where it was hit, in world space.