phys

package
v0.0.0-...-648403e Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2013 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MoveCircle

func MoveCircle(c Circle, v Vector, segs []Segment) (Circle, bool)

MoveCircle moves a circle with a given velocity, handling collision with segments. The second return value is true if the circle collided with a segment beneath it, otherwise it is false. This value can be used to decide if it is "on the ground."

func MoveEllipse

func MoveEllipse(e Ellipse, v Vector, segs []Segment) (Ellipse, bool)

MoveEllipse moves an ellipse with a given velocity, handling collision with segments. The second return value is true if the ellipse collided with a segment beneath it, otherwise it is false. This value can be used to decide if it is "on the ground."

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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