|
|
Chambers wrote:
> John VanSickle wrote:
>> The last time I did a physics simulator (springs and weights), I found
>> that calculating the change in acceleration, and figuring that into
>> the new location and velocity data, greatly reduced the error that
>> accumulates.
>
> That's why I'm calculating forces :)
Well, yeah. But whereas force goes to the second derivative of location
over time, it's also helpful to calculate the third derivative over
time, and figure that into the updates for both position and velocity.
The differential calculus behind it isn't that hard, and provides a
better solution than dampening to the wild oscillations produced by sims
that only go to the second derivative over time.
Regards,
John
Post a reply to this message
|
|