Hello
So, I am developing this game on iPhone. Basically, a table with a lot of balls, all with different sizes and masses. I'm making use of the accelerator events from iPhone and with those, I update the Gravity of my world. This seems to work nicely (the balls roll across the table, depending on how the iphone is tilted). One problem that I've noticed is that each balls' acceleration is not dependent on it's mass (something that I've learnt in physics class that actually should happen).
When I change the concept, set global gravity to (0,0,0) and apply a force (equal to the current gravity) to each ball, everything works fine and mass is taken into account for each ball and acceleration.
Did I stumble upon a bug?
Thank you for your help
Regards
Zambi
Gravity on iphone
-
- Posts: 229
- Joined: Sun Sep 30, 2007 7:58 am
Re: Gravity on iphone
Hi,
this is no bug.
If you drop in the real world two objects with different mass they will fall with the same acceleration.
In your case you need to apply forces, those take mass into account.
this is no bug.
If you drop in the real world two objects with different mass they will fall with the same acceleration.
In your case you need to apply forces, those take mass into account.