~sjdv1982/hivesystem/trunk

« back to all changes in this revision

Viewing changes to manual/movingpanda/panda-14g.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:
102
102
               dragonfly.scene.bind,
103
103
               dragonfly.time.bind,
104
104
               dragonfly.bind.bind):    
105
 
  bind_entity = "local"  
 
105
  bind_entity = "relative"  
106
106
  bind_keyboard = "indirect"
107
107
 
108
108
class camerabindhive(hivemapinithive):
141
141
  connect(v_marker, hide_marker)
142
142
  show_marker = dragonfly.scene.unbound.show()
143
143
  connect(v_marker, show_marker)
144
 
  parent_marker = dragonfly.scene.unbound.parent(local=False,parent_local=True)
 
144
  parent_marker = dragonfly.scene.unbound.parent()
145
145
  connect(v_marker, parent_marker.entityname)
146
146
  connect(startsensor, hide_marker)
147
147
      
154
154
  t_panda_id_gen = dragonfly.std.transistor("id")()
155
155
  connect(panda_id_gen, t_panda_id_gen)
156
156
  connect(t_panda_id_gen, panda_id)
157
 
  random_matrix = dragonfly.std.generator("matrix", random_matrix_generator)()
158
 
  w_spawn = dragonfly.std.weaver(("id","matrix"))()
 
157
  random_matrix = dragonfly.std.generator(("object","matrix"), random_matrix_generator)()
 
158
  w_spawn = dragonfly.std.weaver(("id",("object","matrix")))()
159
159
  connect(panda_id, w_spawn.inp1)
160
160
  connect(random_matrix, w_spawn.inp2)
161
161
 
217
217
  key_k = dragonfly.io.keyboardsensor_trigger("K")
218
218
  connect(key_k, testkill)  
219
219
    
220
 
  do_spawn = dragonfly.std.transistor(("id","matrix"))()
 
220
  do_spawn = dragonfly.std.transistor(("id",("object","matrix")))()
221
221
  connect(w_spawn, do_spawn)
222
222
  connect(do_spawn, pandaspawn.spawn_matrix)
223
223
  trig_spawn = dragonfly.std.pushconnector("trigger")()