Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bge
- scene = bge.logic.getCurrentScene()
- for i in scene.objects:
- print(i, " position is:");
- print(i.position);
- #or
- for i in scene.objects:
- print(i, " x position is: ", i.position.x);
- print(i, " y position is: ", i.position.y);
- print(i, " z position is: ", i.position.z);
- print("===============================");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement