~sjdv1982/hivesystem/trunk

« back to all changes in this revision

Viewing changes to manual/movingpanda/panda-14b.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:
115
115
               dragonfly.scene.bind,
116
116
               dragonfly.time.bind,
117
117
               dragonfly.bind.bind):    
118
 
  bind_entity = "local"  
 
118
  bind_entity = "relative"  
119
119
  bind_keyboard = "indirect"
120
120
 
121
121
class camerabindhive(hivemapinithive):
154
154
  connect(v_marker, hide_marker)
155
155
  show_marker = dragonfly.scene.unbound.show()
156
156
  connect(v_marker, show_marker)
157
 
  parent_marker = dragonfly.scene.unbound.parent(local=False,parent_local=True)
 
157
  parent_marker = dragonfly.scene.unbound.parent()
158
158
  connect(v_marker, parent_marker.entityname)
159
159
  connect(startsensor, hide_marker)
160
160
      
167
167
  t_panda_id_gen = dragonfly.std.transistor("id")()
168
168
  connect(panda_id_gen, t_panda_id_gen)
169
169
  connect(t_panda_id_gen, panda_id)
170
 
  random_matrix = dragonfly.std.generator("matrix", random_matrix_generator)()
171
 
  w_spawn = dragonfly.std.weaver(("id","matrix"))()
 
170
  random_matrix = dragonfly.std.generator(("object","matrix"), random_matrix_generator)()
 
171
  w_spawn = dragonfly.std.weaver(("id",("object","matrix")))()
172
172
  connect(panda_id, w_spawn.inp1)
173
173
  connect(random_matrix, w_spawn.inp2)
174
174
 
230
230
  key_k = dragonfly.io.keyboardsensor_trigger("K")
231
231
  connect(key_k, testkill)  
232
232
    
233
 
  do_spawn = dragonfly.std.transistor(("id","matrix"))()
 
233
  do_spawn = dragonfly.std.transistor(("id",("object","matrix")))()
234
234
  connect(w_spawn, do_spawn)
235
235
  connect(do_spawn, pandaspawn.spawn_matrix)
236
236
  trig_spawn = dragonfly.std.pushconnector("trigger")()