renaming rect to AABB

This commit is contained in:
Fraser Graham
2013-11-24 14:26:40 -08:00
parent 9ca442f10d
commit b702afeb3a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import (
)
type Obstacle struct {
Bounds v.Rect2d `json:"bounds"`
Bounds v.AABB2d `json:"bounds"`
Hp int `json:"-"`
}
@@ -45,7 +45,7 @@ func GenerateObstacles(count int, width, height float32) []Obstacle {
out = append(
out,
Obstacle{
Bounds: v.Rect2d{
Bounds: v.AABB2d{
A: v.Point2d{X: x, Y: y},
B: v.Point2d{X: 20 + x + w, Y: 20 + y + h},
},