physics

package
v0.0.0-...-cc30c68 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2018 License: AGPL-3.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	G                     = -9.8
	COLLISION_COEFFICIENT = 0.7
	KINETIC_FRICTION      = 0.001
	MIN_Y_VELOCITY        = 1
)

Variables

This section is empty.

Functions

func CollisionReflectionAngle

func CollisionReflectionAngle(vx, vy, slope float64) (newVx, newVy float64)

Types

type DeltaFunction

type DeltaFunction func(float64) float64

func DistanceFunction

func DistanceFunction(v0 float64, accel float64) DeltaFunction

func VelocityFunction

func VelocityFunction(accel float64) DeltaFunction

type DoubleDeltaFunction

type DoubleDeltaFunction func(float64) (float64, float64)

func TimeFunction

func TimeFunction(v0 float64, accel float64) DoubleDeltaFunction

Jump to

Keyboard shortcuts

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