Skip to content

Commit

Permalink
Updated example code
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwidlund committed May 9, 2018
1 parent 8d8e7cd commit 0907e9e
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions debug/app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,28 @@ new Model
flatShading: true
onLoad: (model) ->

model.states =
test:
x: 50
rotationZ: 180
z: 0
rotationY: 0
scene.animationLoop = () ->
scene.camera.lookAt model.position

scene.camera.states =
first:
x: 100
y: -100
z: 300
options:
curve: 'easeInOutQuart'
testX:
x: 0
rotationZ: 0
z: 300
rotationY: 84
second:
x: 300
y: -50
z: -200
options:
curve: 'easeInOutQuart'
textS:
x: 62
rotationZ: 92
z: -100
rotationY: 230
third:
x: -100
y: 200
z: -200
options:
curve: 'easeInOutQuart'

scene.onClick ->
model.stateCycle('test', 'testX', 'textS')
scene.camera.stateCycle('first', 'second', 'third')

0 comments on commit 0907e9e

Please sign in to comment.