Get Mesh rotation created from polygon

Right now I create a Mesh using CreatePolygon from 3 points which are constantly chaning their positions based on some camera input. I need to calculate the Mesh rotation relative to origin point (0,0,0). What is the best way to do so?

Mesh rotation is always 0, because I create a new mesh everytime the polygon constructing points change their position

Hi @mohamed_taher and welcome to the community.

Please supply a Playground showing how you create and recreate your polygon. This will considerably help us to help you.

2 Likes

Hello @mohamed_taher ! Just checking in if you were able to make a playground so we can help you further :slight_smile: