Change default steps number
This commit is contained in:
parent
0b0fc730ee
commit
c77baba272
|
@ -6,6 +6,12 @@ import (
|
||||||
"github.com/gopherjs/vecty/elem"
|
"github.com/gopherjs/vecty/elem"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// DefaultForcesConfig specifies default configuration for physics simulation.
|
||||||
|
var DefaultForcesConfig = ForcesConfig{
|
||||||
|
Config: layout.DefaultConfig,
|
||||||
|
Steps: 100,
|
||||||
|
}
|
||||||
|
|
||||||
// ForceEditor represents forces and physics simulation configuration widget.
|
// ForceEditor represents forces and physics simulation configuration widget.
|
||||||
type ForceEditor struct {
|
type ForceEditor struct {
|
||||||
vecty.Core
|
vecty.Core
|
||||||
|
@ -70,9 +76,3 @@ func (l *ForceEditor) Config() ForcesConfig {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DefaultForcesConfig specifies default configuration for physics simulation.
|
|
||||||
var DefaultForcesConfig = ForcesConfig{
|
|
||||||
Config: layout.DefaultConfig,
|
|
||||||
Steps: 20,
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue