API Reference · Picking

PickResult

Namespace: Ava3D

public sealed record class PickResult

What a ray through the scene hit.

Constructors

MemberDescription
PickResult(MeshNode Node, Vector3 WorldPosition, float Distance, int TriangleIndex)

What a ray through the scene hit.

Node

The node that was hit.

WorldPosition

Where on it, in world space.

Distance

How far from the camera, in world units.

TriangleIndex

Which triangle of the node's mesh, as an index into its triangle list.

Properties

MemberDescription
float Distance { get; set; }

How far from the camera, in world units.

MeshNode Node { get; set; }

The node that was hit.

int TriangleIndex { get; set; }

Which triangle of the node's mesh, as an index into its triangle list.

Vector3 WorldPosition { get; set; }

Where on it, in world space.

See also