Show / Hide Table of Contents

Class RayCastResult

This class contains information about the scene of the picked point.

Inheritance
System.Object
RayCastResult
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Engine.Core
Assembly: Fusee.Engine.Core.dll
Syntax
public class RayCastResult

Fields

DistanceFromOrigin

Returns the distance between ray origin and the intersection.

Declaration
public float DistanceFromOrigin
Field Value
Type Description
System.Single

Mesh

The picked mesh.

Declaration
public Mesh Mesh
Field Value
Type Description
Mesh

Model

The model matrix.

Declaration
public float4x4 Model
Field Value
Type Description
float4x4

Node

The scene node container of the result.

Declaration
public SceneNode Node
Field Value
Type Description
SceneNode

Triangle

The index of the triangle in which the intersection of ray and mesh happened.

Declaration
public int Triangle
Field Value
Type Description
System.Int32

U

The barycentric u, v coordinates within the picked triangle.

Declaration
public float U
Field Value
Type Description
System.Single

V

The barycentric u, v coordinates within the picked triangle.

Declaration
public float V
Field Value
Type Description
System.Single

Properties

ModelPos

Returns the model position.

Declaration
public float3 ModelPos { get; }
Property Value
Type Description
float3

TriangleBarycentric

Returns the barycentric triangle coordinates.

Declaration
public float3 TriangleBarycentric { get; }
Property Value
Type Description
float3

UV

The (texture-) UV coordinates of the picked point.

Declaration
public float2 UV { get; }
Property Value
Type Description
float2

WorldPos

Returns the world position of the intersection.

Declaration
public float3 WorldPos { get; }
Property Value
Type Description
float3

Methods

GetTriangle(out float3, out float3, out float3)

Gets the triangles of the picked mesh.

Declaration
public void GetTriangle(out float3 a, out float3 b, out float3 c)
Parameters
Type Name Description
float3 a
float3 b
float3 c
Generated by DocFX
GitHub Repo
Back to top