Initial commit.

This commit is contained in:
2025-11-27 22:50:36 -05:00
commit 70cee9e3f0
11 changed files with 710 additions and 0 deletions

8
elements/box.go Normal file
View File

@@ -0,0 +1,8 @@
package elements
import "fluids/gamedata"
type Box struct {
Position gamedata.Vector
Dimensions gamedata.Vector
}

25
elements/particle.go Normal file
View File

@@ -0,0 +1,25 @@
package elements
import "fluids/gamedata"
type Particle struct {
Position gamedata.Vector
Velocity gamedata.Vector
Radius float64
}
func (p Particle) GetDimensions() gamedata.Vector {
dim := gamedata.Vector{
X: p.Radius * 2,
Y: p.Radius * 2,
}
return dim
}
func (p Particle) GetPosition() gamedata.Vector {
return p.Position
}
func (p *Particle) SetPosition(position gamedata.Vector) {
p.Position = position
}