Shuvit game master repo. http://shuvit.org
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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()