View source

class flaxen.system.MovementSystem extends FlaxenSystem

Available on all platforms

System for processing movement.

An entity must possess both Position and Velocity. Applies the velocity to the position, treating velocity as the number of pixels moved in one second.

To use this system, it must be added to Ash: flaxen.addSystems([MovementSystem]).

Instance Fields

function new(f:Flaxen):Void

function update(time:Float):Void