Class: VelocityControlMethod

VelocityControlMethod(parameter)

Sets the velocity and friction of a single parameter.

The user should emit 'active' and 'inactive' events if required.

Constructor

new VelocityControlMethod(parameter)

Parameters:
Name Type Description
parameter String

The parameter to be controlled (e.g. x, y or zoom)

Implements:

Methods

destroy()

Destructor.

setFriction(friction)

Set the parameter's friction.

Parameters:
Name Type Description
friction Number

setVelocity(velocity)

Set the parameter's velocity.

Parameters:
Name Type Description
velocity Number