lamao / stones-of-history

Automatically exported from code.google.com/p/stones-of-history
0 stars 0 forks source link

Modify SHSceneLoader to be able load entities with localTranslation != 0,0,0 #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The scene in DPS file is scene with absolutely coordinates. It means that
all entities will be loaded with local translations (0,0,0) but coordinates
of their vertices for example (8, 8, 0). 
SHSceneLoader should be modified to properly load our game entities by
calculation entity center (possibly average coordinate off all vertices)
and subtract this center from all loaded vertices.
In short it means that bonuses must be extracted near the brick rather that
in (0,0,0) point (which is current behavior).

Original issue reported on code.google.com by lamao.ua@gmail.com on 2 Jun 2010 at 10:15

GoogleCodeExporter commented 8 years ago

Original comment by lamao.ua@gmail.com on 3 Jun 2010 at 1:29

GoogleCodeExporter commented 8 years ago
Resolved in revision r85.

Original comment by lamao.ua@gmail.com on 4 Jun 2010 at 8:07

GoogleCodeExporter commented 8 years ago

Original comment by lamao.ua@gmail.com on 4 Jun 2010 at 8:07