A simple BatchElement
that provides primitive simulation of velocity, friction and gravity.
Parent SpriteBatch
should have SpriteBatch.hasUpdate
set to true
in order for BasicElement to work properly.
Constructor
Variables
friction:Float = 1.
The velocity friction.
When not 1
, multiplies velocity by pow(friction, dt * 60)
.