Skip to content

Instantly share code, notes, and snippets.

@selfsame
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save selfsame/5d91516917b5a6f6259d to your computer and use it in GitHub Desktop.

Select an option

Save selfsame/5d91516917b5a6f6259d to your computer and use it in GitHub Desktop.
(ns fish.core
(:use [arcadia.core] [hard.core] [hard.tween]))
(def ccol (objects-named "colcube"))
(defn cc-tween [go]
(let [[x y z] (->vec (->v3 go))
start (tween (* (+ 12 x) 0.1))
shrink (tween {go {:local-scale [50 50 50]}} 0.1)
grow (tween {go {:local-scale [100 100 100]}} 0.1)
t1 (tween {go {:euler [90 90 0]}} 0.4 :pow2 :+)]
(link start shrink)
(link shrink t1 grow 1.5 shrink)
(run start)))
(mapv cc-tween ccol)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment