View Single Post
Old 09 January 2013, 20:32   #76

Join Date: Jul 2008
Location: Sweden
Posts: 2,084
Originally Posted by Mrs Beanbag View Post
Your objects need to have:
* position (x,y)
* velocity (x,y)
* rate of spin

given the playing area is only a few screens wide, why do you think any of these variables would require a large dynamic range? 32 bit integers seem more than sufficient in my estimation.
I guess that would be enough for doing some linear animation, but I think there are more variables that must be considered for active simulation.

What I was getting at was not how to represent some single state during animation or how much relative accuracy you need, but the amount and complexity of all the math. At some point during the calculation phases you will probably have to consider very big and very small numbers, and that's where fixed point math becomes problematic.
Leffmann is offline  
Page generated in 0.03867 seconds with 10 queries