www.jpct.net

General => Feedback => Topic started by: JavaMan on April 01, 2008, 03:34:16 pm

Title: Suggestion for a new method in PolyManager
Post by: JavaMan on April 01, 2008, 03:34:16 pm
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
Title: Re: Suggestion for a new method in PolyManager
Post by: EgonOlsen on April 01, 2008, 10:41:06 pm
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...
Title: Re: Suggestion for a new method in PolyManager
Post by: JavaMan on April 02, 2008, 01:43:31 am
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.

Quote
I'll think about it...

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