- #1
TechFan
- 34
- 1
Hi:
I'm building a computer simulation for a 3 gear train system. So far the gears rotate with mouse movement horizontally. Now I'm adding a fictitious motor and braking system to start/stop rotation with mouse clicks. I multiplied the rotation angle by [1-e(-t/TC)] to simulate exponential acceleration and e(-t/TC) for braking for exponential deceleration. Is exponential is the right way to do it? or is there any other better equation. This is just a simple case with no other external conditions influencing; but just the system inertia.
In general terms this is the equation I'm using.
Acceleration=[1-e(-t/TC)];// acceleration case
Acceleration=[e(-t/TC)];// braking case
Thanks
I'm building a computer simulation for a 3 gear train system. So far the gears rotate with mouse movement horizontally. Now I'm adding a fictitious motor and braking system to start/stop rotation with mouse clicks. I multiplied the rotation angle by [1-e(-t/TC)] to simulate exponential acceleration and e(-t/TC) for braking for exponential deceleration. Is exponential is the right way to do it? or is there any other better equation. This is just a simple case with no other external conditions influencing; but just the system inertia.
In general terms this is the equation I'm using.
Acceleration=[1-e(-t/TC)];// acceleration case
Acceleration=[e(-t/TC)];// braking case
Thanks