Suggestion for a new method in PolyManager

Started by JavaMan, April 01, 2008, 03:34:16 PM

Previous topic - Next topic

JavaMan

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.

thanks,
Jman

EgonOlsen

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...

JavaMan

I forgot to say why I wanted it. The reason I am interested in such a method would be to alter an objects vertexes that were part of a collision.

QuoteI'll think about it...

Ok, thanks. Its not mission critical, just convenient.