Motion Simulation (Polar / Cartesian)



Note: in expressions use Math.sin() or Math.cos()



Select a preset and press "Generate and Start"

Theory and Formulas

Parametric equations (startup correction):
The motion is automatically shifted so that at time $t=0$ the object is exactly at the initial point $(x_0, y_0)$.

$x(t) = x_{expr}(t) - x_{expr}(0) + x_0 + v_{x0} \cdot t$
$y(t) = y_{expr}(t) - y_{expr}(0) + y_0 + v_{y0} \cdot t$
Derivative Vectors (Calculus):
Velocity $\vec{v}$ is the first derivative of position with respect to time:
$\vec{v}(t) = \left[ \frac{dx}{dt}, \frac{dy}{dt} \right]$

Acceleration $\vec{a}$ is the second derivative (derivative of velocity):
$\vec{a}(t) = \left[ \frac{dv_x}{dt}, \frac{dv_y}{dt} \right]$

The application features Auto-scaling: if the object approaches the boundary, the camera smoothly zooms out.

The maximum range is 2000 units. Exceeding it will stop the simulation!