Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Simulation ¶
type Simulation struct { Fluid []*Unit Metrics *metrics.Metrics Config *config.Config IsPause bool }
func NewSimulation ¶
func NewSimulation(config *config.Config) (*Simulation, error)
func (*Simulation) NewFluidAtPosition ¶
func (s *Simulation) NewFluidAtPosition(position rl.Vector2)
func (*Simulation) NewFluidWithVelocity ¶
func (s *Simulation) NewFluidWithVelocity(position rl.Vector2)
func (*Simulation) Reset ¶
func (s *Simulation) Reset()
func (*Simulation) Update ¶
func (s *Simulation) Update() error
func (*Simulation) UpdateWithVerletIntegration ¶
func (s *Simulation) UpdateWithVerletIntegration() error
Click to show internal directories.
Click to hide internal directories.