One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

CollisionCastHit.TriangleHit

struct · iOS 18.0+ · SDK 27.1

struct TriangleHit

Information returned when ray intersects a triangle mesh.

Members (2)

get · iOS 18.0+

uv

TypeScript
get uv(): SDKHandle
Swift declaration
var uv: SIMD2<Float> { get }

The barycentric uv coordinate for where in the triangle the ray hit.

get · iOS 18.0+

faceIndex

TypeScript
get faceIndex(): number
Swift declaration
var faceIndex: Int { get }

The face index for the mesh face that that the ray hit.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →