ship

package
v0.0.0-...-8c97bc2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Physics

type Physics struct {
	Width  float64 `yaml:"width"`
	Height float64 `yaml:"height"`
	Length float64 `yaml:"length"`
	Mass   float64 `yaml:"mass"`
}

The Physics struct provides information about the 3D rigid body that defines the ship in physics simulations

type ShipDescription

type ShipDescription struct {
	Name    string  `yaml:"name"`
	Physics Physics `yaml:"physics"`
}

The Ship struct is the game engine's internal view of a ship. With all the information needed to simulate it.

type Thruster

type Thruster struct{}

A Thruster is a small part with a toggle trigger that applies a simple impulse to the ship's physics body.

Jump to

Keyboard shortcuts

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