~sjdv1982/hivesystem/trunk

« back to all changes in this revision

Viewing changes to dragonfly/scene/spawn_actor_or_entity.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:
14
14
  b_actorclassname = buffer("pull", "id")
15
15
  connect(actorclassname, b_actorclassname)
16
16
  v_actorname = variable("id")
17
 
  v_matrix = variable("matrix")
 
17
  v_matrix = variable(("object","matrix"))
18
18
  @modifier
19
19
  def do_spawn(self):
20
20
    try:
26
26
    ent.set_axissystem(axis)
27
27
    ent.commit()
28
28
  
29
 
  spawn_matrix = antenna("push",("id","matrix"))
30
 
  uw = unweaver(("id","matrix"), v_actorname, v_matrix)
 
29
  spawn_matrix = antenna("push",("id",("object","matrix")))
 
30
  uw = unweaver(("id",("object","matrix")), v_actorname, v_matrix)
31
31
  connect(spawn_matrix, uw)
32
32
  trigger(v_actorname, b_actorclassname, "input")    
33
33
  trigger(v_matrix, do_spawn, "input")