forces/handle_forces library
Classes
- AccelerationForce2D
- Apply acceleration to velocity {value} pixel/seconds
- Force2D
- GravityForce2D
- Apply acceleration to velocity {value} pixel/seconds
- LinearForce2D
- Apply linear force to velocity
- ResistanceForce2D
- Apply resistence to velocity {value} pixel/seconds
Mixins
- HandleForces
-
Mixin that makes the component suffer influences from global or local forces.
To adds local forces just call
addForce
method. To adds global foreces use the paramglobalForces
inBonfireWidget
.