Initial commit.
This commit is contained in:
15
colliders/collider.go
Normal file
15
colliders/collider.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package colliders
|
||||
|
||||
import (
|
||||
"fluids/gamedata"
|
||||
)
|
||||
|
||||
type Collider interface {
|
||||
GetPosition() gamedata.Vector
|
||||
GetDimensions() gamedata.Vector
|
||||
SetPosition(gamedata.Vector)
|
||||
//GetBounds() image.Rectangle
|
||||
|
||||
//indicates whether this collider is inverted, i.e. 'contains' elements
|
||||
//IsContainer() bool
|
||||
}
|
||||
Reference in New Issue
Block a user