additionally, can you recommend any tutorials about this?
Easiest way is to :
- first create a “normal” plane, i mean a plane with 4 vertices with the values (1 , 1 , 0) , (-1 , 1 , 0) , (1 , -1 , 0) , (-1 , -1 , 0).
- multiply all the points of the plane by the object’s
transform.localToWorldMatrix
- after the multiplication, the plane should be aligned with the object’s transform