Inspired by:
npm install
gulp build
gulp watch
Planck.js was chosen in favour of matter.js, because of the tunneling happening during the collision between flipper & ball with the latter.
Twisting force that causes the rotation (rotational equivalent of linear force).
$ \tau = f \cdot r \cdot sin \theta $
where:
\tau
: torque.f
: force.r
: lever.\theta
: angle between the force and the lever.
$ v = v_0 + a \cdot t $
with:
v
: speed.v_0
: initial speed.a
: accelration.t
: time.
$ f = m \cdot a $
where:
f
: force.m
: mass (in kg), a measure of inertia that affects how quick speed can change (i.e. acceleration).a
: acceleration (e.g. gravity).
$ p = \tau \cdot \omega $
where:
p
: power.\tau
: torque.\omega
: angular speed.