16 lines
299 B
Go
16 lines
299 B
Go
|
|
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
|
||
|
|
}
|