Movimentation Class
Built-in behaviour that have acceleration / friction / velocity control.
May be appended to any DisplayObject, by DisplayObject#behave
method.
Constructor
Movimentation
()
Example:
player = new Joy.DisplayObject(...);
// Append movimentation behaviour to DisplayObject
player.behave(Joy.Behaviour.Movimentation);
// Configure attributes
player.maxVelocity.x = 8;
player.acceleration.x = 2;
player.friction.x = 1;