renaming rect to AABB
This commit is contained in:
+2
-2
@@ -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},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user