Documentation ¶
Index ¶
- Constants
- type AABB
- type AABBNode
- type AABBTree
- type Entity
- type IAABB
- type Point
- type Rect
- func (r *Rect) AddTo(x float64, y float64)
- func (r *Rect) AddToX(x float64)
- func (r *Rect) AddToY(y float64)
- func (r *Rect) GetAABB() *AABB
- func (r *Rect) GetHeight() float64
- func (r *Rect) GetWidth() float64
- func (r *Rect) GetX() float64
- func (r *Rect) GetY() float64
- func (r *Rect) MoveTo(x float64, y float64)
- func (r *Rect) MoveToX(x float64)
- func (r *Rect) MoveToY(y float64)
- func (r *Rect) SetSize(w float64, h float64)
- type Size
- type Sprite
Constants ¶
View Source
const AABBNullNode = 0xffffffff
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AABBNode ¶
type AABBNode struct {
// contains filtered or unexported fields
}
func NewAABBNode ¶
func NewAABBNode() *AABBNode
type AABBTree ¶
type AABBTree struct {
// contains filtered or unexported fields
}
func NewAABBTree ¶
func (*AABBTree) InsertObject ¶
func (*AABBTree) QueryOverlaps ¶
func (*AABBTree) RemoveObject ¶
func (*AABBTree) UpdateObject ¶
type Entity ¶
type Entity struct { Rect Mass float64 Vx float64 Vy float64 Bounce bool Gravity bool // contains filtered or unexported fields }
func (*Entity) Draw ¶
func (e *Entity) Draw(surface interfaces.ISurface)
func (*Entity) HasCollision ¶
Click to show internal directories.
Click to hide internal directories.