~sjdv1982/hivesystem/trunk

« back to all changes in this revision

Viewing changes to manual/movingpanda/panda-13b.py

  • Committer: Sjoerd de Vries
  • Date: 2014-06-09 10:19:38 UTC
  • mfrom: (182.1.43 hive-view)
  • Revision ID: sjdv1982@gmail.com-20140609101938-7ji5g0buo09r0se6
merged with hive-view branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
               dragonfly.scene.bind,
137
137
               dragonfly.time.bind,
138
138
               dragonfly.bind.bind):    
139
 
  bind_entity = "local"  
 
139
  bind_entity = "relative"  
140
140
  bind_keyboard = "indirect"
141
141
 
142
142
class camerabindhive(bee.inithive):
198
198
  connect(v_marker, hide_marker)
199
199
  show_marker = dragonfly.scene.unbound.show()
200
200
  connect(v_marker, show_marker)
201
 
  parent_marker = dragonfly.scene.unbound.parent(local=False,parent_local=True)
 
201
  parent_marker = dragonfly.scene.unbound.parent()
202
202
  connect(v_marker, parent_marker.entityname)
203
203
  connect(startsensor, hide_marker)
204
204
      
211
211
  t_panda_id_gen = dragonfly.std.transistor("id")()
212
212
  connect(panda_id_gen, t_panda_id_gen)
213
213
  connect(t_panda_id_gen, panda_id)
214
 
  random_matrix = dragonfly.std.generator("matrix", random_matrix_generator)()
215
 
  w_spawn = dragonfly.std.weaver(("id","matrix"))()
 
214
  random_matrix = dragonfly.std.generator(("object","matrix"), random_matrix_generator)()
 
215
  w_spawn = dragonfly.std.weaver(("id",("object","matrix")))()
216
216
  connect(panda_id, w_spawn.inp1)
217
217
  connect(random_matrix, w_spawn.inp2)
218
218
 
274
274
  key_k = dragonfly.io.keyboardsensor_trigger("K")
275
275
  connect(key_k, testkill)  
276
276
    
277
 
  do_spawn = dragonfly.std.transistor(("id","matrix"))()
 
277
  do_spawn = dragonfly.std.transistor(("id",("object","matrix")))()
278
278
  connect(w_spawn, do_spawn)
279
279
  connect(do_spawn, pandaspawn.spawn_matrix)
280
280
  trig_spawn = dragonfly.std.pushconnector("trigger")()