mirror of
https://github.com/status-im/whispervis.git
synced 2025-02-08 11:23:53 +00:00
Rotate faster on lower FPS
This commit is contained in:
parent
c7d4a5d014
commit
c72c092286
@ -29,7 +29,8 @@ func (w *WebGLScene) animate() {
|
||||
|
||||
if w.autoRotate {
|
||||
pos := w.graphGroup.Object.Get("rotation")
|
||||
pos.Set("y", pos.Get("y").Float()+float64(0.001))
|
||||
coeff := 60 / FPS * 0.001 // rotate faster on lower FPS
|
||||
pos.Set("y", pos.Get("y").Float()+coeff)
|
||||
}
|
||||
|
||||
if w.wobble {
|
||||
|
Loading…
x
Reference in New Issue
Block a user