Skip to content

Speed

class Speed(internal var fineUnitsPerTick: Int) : Component()
Example
fun cruise(boat: WorldProjection) {
boat.replaceComponent(Speed(Speed.units.tile(1.5)))
boat.replaceComponent(Heading(HeadingMode.FACE_VELOCITY))
}
object Distances

Distances