Physics
class Physics( internal var velocityX: Int = 0, internal var velocityZ: Int = 0, var thrust: Int = 0, internal var forceX: Int = 0, internal var forceZ: Int = 0, internal var drag: Int = 0, internal var lateralDrag: Int = 0, internal var maxSpeed: Int = Int.MAX_VALUE) : Component()fun fullSail(boat: WorldProjection) { val physics = boat.findComponent<Physics>() ?: Physics().also { boat.addComponent(it) } physics.thrust = 40}thrust
Section titled “thrust”var thrust: Int