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.

active_camera_loc.py 264B

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