Shuvit game master repo. http://shuvit.org
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

active_camera_loc.py 276B

123456789101112
  1. import bge
  2. def set(cont):
  3. own = cont.owner
  4. #own.getWorldPosition
  5. scene = bge.logic.getCurrentScene()
  6. cam = scene.active_camera
  7. own.worldPosition = cam.worldPosition
  8. # dont call main(bge.logic.getCurrentController()), the py controller will