diff --git a/wobble.go b/wobble.go index 5edc9d5..2bf640c 100644 --- a/wobble.go +++ b/wobble.go @@ -5,8 +5,6 @@ import ( "time" "github.com/divan/graphx/layout" - - "github.com/gopherjs/gopherjs/js" ) 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 { X, Y, Z float64 }