Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Car ¶
type Car struct { IsActive bool RotateLeft, RotateRight, Accelerate, Decelerate bool WheelWidth, WheelHeight, Width, Height int WheelRotationStep, WheelMaxAngle, WheelAngle, X, Y, Rotation, Speed, MaxSpeed, Acceleration float64 Pivot Pivot FrontPivot FrontPivot RearPivot RearPivot DirectionPivot DirectionPivot RearPivotAbs RearPivotAbs Wheels []Wheel Direction Direction Image *ebiten.Image Color string }
func (*Car) UpdateDirection ¶
func (c *Car) UpdateDirection()
type DirectionPivot ¶
type DirectionPivot struct {
X, Y float64
}
type FrontPivot ¶
type FrontPivot struct {
X, Y float64
}
type RearPivotAbs ¶
type RearPivotAbs struct {
X, Y float64
}
type TempDirPivot ¶
type TempDirPivot struct {
X, Y float64
}
Click to show internal directories.
Click to hide internal directories.