chipmunk

package
v0.0.0-...-ded5f79 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

The chipmunk package allows using the Chipmunk physical engine in a game. TODO: manage disabled objects.

Index

Constants

This section is empty.

Variables

View Source
var Gravity goz.Vector2 = goz.Vector2{0, -9.8}

Functions

func NewRigidBody

func NewRigidBody(weight float32) goz.Component

func NewShapeBox

func NewShapeBox() goz.Component

func NewShapeCircle

func NewShapeCircle() goz.Component

func NewStaticBody

func NewStaticBody() goz.Component

Types

type RigidBody

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

func (*RigidBody) GetAttr

func (rbody *RigidBody) GetAttr(attr string) (interface{}, error)

func (*RigidBody) GetType

func (rbody *RigidBody) GetType() string

func (*RigidBody) SetAttr

func (rbody *RigidBody) SetAttr(attr string, value interface{}) error

func (*RigidBody) Start

func (rbody *RigidBody) Start(gameObject *goz.GameObject)

func (*RigidBody) Update

func (rbody *RigidBody) Update(gameObject *goz.GameObject)

type ShapeBox

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

func (*ShapeBox) GetAttr

func (box *ShapeBox) GetAttr(attr string) (interface{}, error)

func (*ShapeBox) SetAttr

func (box *ShapeBox) SetAttr(attr string, value interface{}) error

func (*ShapeBox) Start

func (box *ShapeBox) Start(gameObject *goz.GameObject)

func (*ShapeBox) Update

func (box *ShapeBox) Update(gameObject *goz.GameObject)

type ShapeCircle

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

func (*ShapeCircle) GetAttr

func (circle *ShapeCircle) GetAttr(attr string) (interface{}, error)

func (*ShapeCircle) SetAttr

func (circle *ShapeCircle) SetAttr(attr string, value interface{}) error

func (*ShapeCircle) Start

func (circle *ShapeCircle) Start(gameObject *goz.GameObject)

func (*ShapeCircle) Update

func (circle *ShapeCircle) Update(gameObject *goz.GameObject)

type StaticBody

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

func (*StaticBody) GetType

func (sbody *StaticBody) GetType() string

func (*StaticBody) Start

func (sbody *StaticBody) Start(gameObject *goz.GameObject)

func (*StaticBody) Update

func (sbody *StaticBody) Update(gameObject *goz.GameObject)

Jump to

Keyboard shortcuts

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