future

package
v0.0.0-...-e44791f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const FuelRechargeRate = float32(1.0 / 3.0) // 1 unit every 3 seconds

FuelRechargeRate is number of units recharged per second.

Variables

This section is empty.

Functions

func CannonX

func CannonX(initial float32, rate float32, elap time.Duration) (float32, float32)

CannonX calculates new value after elap delta time interval. 0.0 to 1.0

func Fuel

func Fuel(initial float32, elap time.Duration) float32

Fuel calculates new value after elap delta time interval. 0.0 to 10.0

func MissileY

func MissileY(initial float32, rate float32, elap time.Duration) float32

MissileY calculates new value after elap delta time interval. 0.0 to 1.0

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL