I'm still trying to figure out what happen. Somehow e_frozenFlag is true from start, and if I remove e_frozenFlag check on line 308 no collision is done. I will look deeply when I had time 🙄
Advices needed
MiscellaneousThat will happen if the body is created outside of the world box, or if it moves extremely quickly outside of the world.
Please keep this updated, because I recently decided to try to port Box2D to Symbian as my school project for the C++ course and make a simple game at the top of it 🙂
I fear most of floats->fixed-point conversion. When I was developing my own little J2ME physics engine most of the problems and bugs were because of fixed-point math. Things kept overflowing or were losing precision. Please let me know if you ran into any of these problems while porting.
I fear most of floats->fixed-point conversion. When I was developing my own little J2ME physics engine most of the problems and bugs were because of fixed-point math. Things kept overflowing or were losing precision. Please let me know if you ran into any of these problems while porting.
You might want to check out Jetro Lauha's fixed-point slides: http://jet.ro/creations#fixedpoint
One great tip is to first run things on PC using your own number class which internally uses both fixed-point and floating-point in parallel -- that way you can easily find the problem spots.
One great tip is to first run things on PC using your own number class which internally uses both fixed-point and floating-point in parallel -- that way you can easily find the problem spots.
raigan wrote:
You might want to check out Jetro Lauha's fixed-point slides: http://jet.ro/creations#fixedpoint
One great tip is to first run things on PC using your own number class which internally uses both fixed-point and floating-point in parallel -- that way you can easily find the problem spots.
One great tip is to first run things on PC using your own number class which internally uses both fixed-point and floating-point in parallel -- that way you can easily find the problem spots.
Wow! These slides are really handy, easy to understand and full of informations 🙂 Thanks.
Well, they didn't bring many new ideas for me (except his SQRT calculation), but now I know the way I do fixed-point math is the "right" way.
Original thread: https://box2d.org/forum/viewtopic.php?t=69