mirror of
https://github.com/status-im/whispervis.git
synced 2025-02-08 11:23:53 +00:00
Remove dead code
This commit is contained in:
parent
2edebc99c3
commit
e8e4765236
11
wobble.go
11
wobble.go
@ -5,8 +5,6 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/divan/graphx/layout"
|
"github.com/divan/graphx/layout"
|
||||||
|
|
||||||
"github.com/gopherjs/gopherjs/js"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -72,15 +70,6 @@ func (w *Wobbling) changeDirection() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// moveRandom randomly moves the three.js object to given distance.
|
|
||||||
// TODO(divan): use Mesh's Position?
|
|
||||||
func moveRandom(obj *js.Object, d *Direction) {
|
|
||||||
pos := obj.Get("position")
|
|
||||||
pos.Set("x", pos.Get("x").Float()+d.X)
|
|
||||||
pos.Set("y", pos.Get("y").Float()+d.Y)
|
|
||||||
pos.Set("z", pos.Get("z").Float()+d.Z)
|
|
||||||
}
|
|
||||||
|
|
||||||
type Direction struct {
|
type Direction struct {
|
||||||
X, Y, Z float64
|
X, Y, Z float64
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user