getVertex(index,surfaceID) after scaling


Recommended Posts

Hello Unigine team,
I would like to understand why the vertexs list of an ObjectMeshStaticPtr is not updated after scaling ?
For exemple if I scale my object by 10 and after call getVertex(), the returned position is always the same before scaling.
This is not a problem I can multiply by getWorldTransform() but I want to understand why...Maybe I made something wrong ?

Thanks for you explanation :).

Edited by fabre.cedric
Link to post


The method returns coordinates in object space (basically unaffected by any transformation). The transformation happens only on GPU side so world space coordinates aren't stored anywhere on CPU side.

  • Thanks 1
Link to post