Shuvit game master repo. http://shuvit.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

occluders.py 277B

1234567891011
  1. import bge
  2. def place():
  3. scene = bge.logic.getCurrentScene()
  4. for x in scene.objects:
  5. if 'occluder_tmp' in x.name:
  6. print('place occluder')
  7. o = scene.addObject('occluder_obj', x)
  8. o.worldOrientation = x.worldOrientation
  9. o.worldScale = x.worldScale
  10. x.endObject()