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

Offline JavaMan

  • long
  • ***
  • Posts: 231
    • View Profile
Suggestion for a new method in PolyManager
« 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
« Last Edit: April 01, 2008, 07:46:11 pm by JavaMan »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Suggestion for a new method in PolyManager
« Reply #1 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...

Offline JavaMan

  • long
  • ***
  • Posts: 231
    • View Profile
Re: Suggestion for a new method in PolyManager
« Reply #2 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.