09-16-2007, 06:36 AM
I'm starting in on this again, after a long hiatus. This time, I'm taking on the fish, since I think they would benefit the most from being able to plug numbers into a spreadsheet.
So far, I have inferred that the divisor for the fish's initial velocity is 3.
Now, the fish's gravity doesn't behave quite like I would expect. Based on what Vern explained about the global gravity in post #11:
So, let's say that you input a fish's gravity of 20 and an initial velocity of 60. Since the divisor is 3, that means the fish is initially traveling 20ppf. Assuming that the engine subtracts the gravity value from the fish's velocity every frame, the fish should only travel one frame (20 pixels) before turning around and accelerating back down. This is not what happens! The fish actually travels around 11 tiles (176 pixels) before turning around!
I'm not sure what to do at this point. I might need another Vern Ex Machina, or I might just give up.
So far, I have inferred that the divisor for the fish's initial velocity is 3.
Now, the fish's gravity doesn't behave quite like I would expect. Based on what Vern explained about the global gravity in post #11:
Gravity - 1.3 ppf (i.e. most objects accelerate by this amount per frame)
So, let's say that you input a fish's gravity of 20 and an initial velocity of 60. Since the divisor is 3, that means the fish is initially traveling 20ppf. Assuming that the engine subtracts the gravity value from the fish's velocity every frame, the fish should only travel one frame (20 pixels) before turning around and accelerating back down. This is not what happens! The fish actually travels around 11 tiles (176 pixels) before turning around!
I'm not sure what to do at this point. I might need another Vern Ex Machina, or I might just give up.

