body

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	Velocity vector.Vector

	Shape shape
	// contains filtered or unexported fields
}

func New

func New() *Body

func (*Body) AddForce

func (r *Body) AddForce(force vector.Vector)

func (*Body) AddImpluse

func (r *Body) AddImpluse(impulse vector.Vector)

func (*Body) Id

func (r *Body) Id() int64

func (*Body) InverseMass

func (r *Body) InverseMass() float64

func (*Body) Position

func (r *Body) Position() vector.Vector

func (*Body) Rotation

func (r *Body) Rotation() rotator.Rotator

func (*Body) SetAngularVelocity

func (r *Body) SetAngularVelocity(degrees float64)

func (*Body) SetMass

func (r *Body) SetMass(mass float64)

func (*Body) SetPosition

func (r *Body) SetPosition(position vector.Vector)

func (*Body) SetRotation

func (r *Body) SetRotation(rotation rotator.Rotator)

func (*Body) SetShape

func (r *Body) SetShape(s shape)

func (*Body) SetStatic

func (r *Body) SetStatic()

func (*Body) Tick

func (r *Body) Tick(delta float64)

Jump to

Keyboard shortcuts

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