Scripting API
Scripting API
Ray3D
Record struct in Abyss.Core, from Abyss.Core.
A ray in a 3D world: where it starts, and the way it goes, a unit long. What a camera sees along through a point of the screen (World.ScreenRay), to cast into a world's colliders for what is under the pointer.
public readonly record struct Ray3DConstructors
Ray3D
public Ray3D(Vector3 Origin, Vector3 Direction)A ray in a 3D world: where it starts, and the way it goes, a unit long. What a camera sees along through a point of the screen (World.ScreenRay), to cast into a world's colliders for what is under the pointer.
Parameters
Origin: Where it starts.Direction: The way it goes, a unit long.
Properties
Origin
public Vector3 Origin { get; init; }Where it starts.
Direction
public Vector3 Direction { get; init; }The way it goes, a unit long.
Methods
At
public Vector3 At(float distance)The point distance along it.
Parameters
distance
