Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

RaycastHit.barycentricCoordinate

public Vector3 barycentricCoordinate;

Description

The barycentric coordinate of the triangle we hit.

This lets you interpolate any of the vertex data along the 3 axes.

no example available in C#

Did you find this page useful? Please give it a rating: