c# Create triangle mesh with three Vector3 points

Hello. :slight_smile:
I’m trying to generate triangle gameObjects using three Vector3 points (pointA, B, C)
the location of pointA,B,C can be changed.
I’ve been trying to find answers my self but most of them were in GL that I don’t understand…
does anyone know how to do it in c#?

thank you for reading this btw :slight_smile:

You can use the mesh class to write the vertices and triangles you need to the mesh.

Look at the exmaple 1. Building a mesh from scratch