Author
Topic: Suggestion for a new method in PolyManager (Read 4142 times)

Would it be possible to have a setTransformedVertex method for the PolygonManager in the next jpct? There is already a getTransformedVertex, but could there be a method that sets the vertex too? Or, is this not even feasible? I know the same thing can be done with a vertexcontroller, but it would be much easier with just a method.

Setting a transformed vertex wouldn't make any sense, because that would mean that you set it in world space. That's basically why the getter exists: To get a vertex' position in world space. It should be possible to add such a method, but i'm not sure if like the idea. That would be two places (PolygonManager and VertexController) for the same thing, with the PolygonManager being simpler to use but slower and the more complicated, but faster, VertexController. I'll think about it...