The Dot is the basic building block of the Verlet simulation, representing a single moving point.

Each Dot stores its latest position, acceleration, and prior position (from the last time the Verlet simulation stepped forward).

Constructor

@:value({ y : 0, x : 0 })inlinenew(x:Float = 0, y:Float = 0)

Variables

ax:Float

The Dot's X acceleration.

ay:Float

The Dot's Y acceleration.

dx:Float

The Dot's last X position.

dy:Float

The Dot's last Y position.

x:Float

The Dot's X position.

y:Float

The Dot's Y position.

Methods