Reputation
530
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
2 8
Newest
 Commentator
Impact
~20k people reached

  • 0 posts edited
  • 0 helpful flags
  • 45 votes cast
Feb
24
accepted Calculate total area of a composition of images
Feb
23
awarded  Commentator
Feb
23
comment Calculate total area of a composition of images
I'm aware that the area doesn't change with rotation. As Lars commented, the use or area is a bit ambiguous but I think the chunk of code in my question made pretty clear that my intention was computing the AABB of the whole composition.
Feb
23
comment Calculate total area of a composition of images
Makes sense. Could you please expand the answer to include the scale as well?
Feb
23
comment Calculate total area of a composition of images
Yes. That's a good point - I edited the answer to reflect that.
Feb
23
awarded  Editor
Feb
23
revised Calculate total area of a composition of images
added 105 characters in body
Feb
23
awarded  Student
Feb
23
asked Calculate total area of a composition of images
Feb
16
comment Transform matrix hierarchy issue
Funny thing is - I assumed this behaviour was something that also happens in real frameworks and engines. Just went to check in Unity and the same deformation occurs. At least this agrees with all tutorials about matrices where they say to just multiply parent's matrix with child matrix.
Feb
16
accepted Transform matrix hierarchy issue
Feb
16
awarded  Scholar
Feb
16
asked Transform matrix hierarchy issue
Jan
23
answered Multiple resolutions for Unity 2D Android game
Jan
16
comment How can I maintain saved game backward compatibility?
I'm not aware of a generic architecture for this goal but I would make make the patching process also update/convert save games to ensure compatibility with new features.
Jan
15
comment Java High-Resolution Timer for a simple game
I really don't know what are you trying to achieve since you brought Swing into the story. I recommend you read about game loops here: gafferongames.com/game-physics/fix-your-timestep
Jan
15
comment Java High-Resolution Timer for a simple game
Delta time is the difference in elapsed time. In your example (to achieve centiseconds) you could call System.nanoTime() in a loop and accumulate time differences until you get a centisecond and then update your game logic. But since you need only centiseconds precision, System.currentTimeMillis() should also be enough. What are your concerns regarding these methods?
Jan
15
answered Java High-Resolution Timer for a simple game
Nov
17
awarded  Yearling
Nov
17
awarded  Yearling