Documentation ¶
Index ¶
- Constants
- type BarMagnet
- func (m *BarMagnet) GeoM() ebiten.GeoM
- func (m *BarMagnet) RootVDebug() (x1, y1, x2, y2 float64, c color.Color)
- func (m *BarMagnet) StickRoot(pole Pole) bool
- func (m *BarMagnet) StickTip(pole Pole) bool
- func (m *BarMagnet) TipVDebug() (x1, y1, x2, y2 float64, c color.Color)
- func (m *BarMagnet) Update(poles []Pole)
- type Body
- type Location
- type Pole
- type PoleType
- type Power
- type Velocity
Constants ¶
View Source
const MagnetPowerRange float64 = 1000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BarMagnet ¶
type BarMagnet struct {
// contains filtered or unexported fields
}
func NewBarMagnet ¶
func (*BarMagnet) RootVDebug ¶
Click to show internal directories.
Click to hide internal directories.