Hi Jake, I'm trying to scale the shape Height (CapHeight var from the SplinePathMeshBuilder script) from the bottom.
Because for now, it scales from the center :
What I would like :
(I thought by changing the pivot point it would have worked... but no).
Is there any tips I can use to achieve this ?
Thank you so much for your time
Seb
I suspect the answer is in the CuryUtility and CreateRectangleMesh function.
But it is chinese to me haha
Hum well it seems to work like that. Is it allright ?
Changing
By :
Because for now, it scales from the center :
What I would like :
(I thought by changing the pivot point it would have worked... but no).
Is there any tips I can use to achieve this ?
Thank you so much for your time
Seb
I suspect the answer is in the CuryUtility and CreateRectangleMesh function.
But it is chinese to me haha
Hum well it seems to work like that. Is it allright ?
Changing
Code:
mesh.vertices = new Vector3[4] { new Vector3(-w2, h2, 0), new Vector3(w2, h2, 0),
new Vector3(w2, -h2, 0), new Vector3(-w2, -h2, 0) };
Code:
mesh.vertices = new Vector3[4] { new Vector3(-w2, h2*2, 0), new Vector3(w2, h2*2, 0),
new Vector3(w2, 0, 0), new Vector3(-w2, 0, 0) };