contact

package
v0.0.0-...-706fec5 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const RESTITUTION = 0.5

Variables

This section is empty.

Functions

This section is empty.

Types

type Contact

type Contact struct {
	// contains filtered or unexported fields
}

func New

func New(lhs, rhs *body.Body) *Contact

func (*Contact) DetectCollision

func (c *Contact) DetectCollision()

func (*Contact) Normal

func (c *Contact) Normal() vector.Vector

func (*Contact) Penetration

func (c *Contact) Penetration() float64

func (*Contact) Points

func (c *Contact) Points() []vector.Vector

func (*Contact) SolveCollision

func (c *Contact) SolveCollision()

Jump to

Keyboard shortcuts

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