Class: VelocityControlMethod

VelocityControlMethod(parameter)

ControlMethod to set 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()

Destroy the instance

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