M_Mesh:AddPoint(pos, attachID, frame)

Version added: before 9.5

Arguments:

Name Type Description Default Ver
pos Vector2 Location of the new point < 9.5
attachID int32 If -1, then start a new curve, otherwise attach the new point to this point id < 9.5
frame int32 Frame number < 9.5

Return value:

void none
Add a new point to the mesh. This function can behave in three ways:

Start a new curve separate from any existing curve (attachID = -1);
Insert a point into an existing curve (and thus splitting a segment) (attachID is not a curve endpoint).
Extend an existing curve (attachID is a curve endpoint).

---

Calling AddPoint after AddLonePoint appears to cause moho to crash (use AppendPoint to extend the curve).

It does not appear to be possible to create a branched curve using this function alone (it seems to be necessary to create a new curve and weld it to an existing curve point).



<< Back to M_Mesh