object

package
v0.0.0-...-1403344 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const G = 1

const G = 6.67408e-11

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
	pixelmunk.Object
	Manual bool
	// contains filtered or unexported fields
}

func New

func New(position vect.Vect, radius float32, mass vect.Float, velocity vect.Vect, viewFinder *viewfinder.ViewFinder, c color.Color, manual bool) (object *Object)

func (*Object) ApplyGravity

func (o *Object) ApplyGravity(objects []*Object)

func (Object) DrawAcceleration

func (o Object) DrawAcceleration(imd *imdraw.IMDraw)

func (Object) DrawObject

func (o Object) DrawObject(imd *imdraw.IMDraw)

func (Object) DrawTrails

func (o Object) DrawTrails(imd *imdraw.IMDraw)

func (Object) DrawVelocity

func (o Object) DrawVelocity(imd *imdraw.IMDraw)

func (*Object) RecordTrails

func (o *Object) RecordTrails()

func (Object) Stats

func (o Object) Stats() (position, velocity, acceleration vect.Vect)

Jump to

Keyboard shortcuts

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