API Reference · Picking
PickResult
Namespace: Ava3D
public sealed record class PickResult
What a ray through the scene hit.
Constructors
| Member | Description |
|---|
PickResult(MeshNode Node, Vector3 WorldPosition, float Distance, int TriangleIndex)
| What a ray through the scene hit. NodeThe node that was hit. WorldPositionWhere on it, in world space. DistanceHow far from the camera, in world units. TriangleIndexWhich triangle of the node's mesh, as an index into its triangle list.
|
Properties
| Member | Description |
|---|
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