Skip to content

hm5-types (source format) / ParabolaSettings

Interface: ParabolaSettings ​

The physics of a parabola type: x(t) = x + vx·t, y(t) = y + vy·t + g·t(t−1)/2 with whole frames (game physics: position, then velocity += g), or y + vy·t + g·t²/2 when continuous.

Properties ​

PropertyTypeDescription
attach?ParabolaAttach[]-
continuous?boolean-
frames?numberframes drawn; absent / 0 = until it is back at the start height (or 30 frames when it never rises)
gravity?numberadded to vy every frame (+ = down); absent = 1

HereSplash — 2D animation for the web