Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bge
- scene = bge.logic.getCurrentScene()
- owner = bge.logic.getCurrentController().owner
- ob2 = scene.objects['Sphere']
- length = owner.getDistanceTo(ob2)
- print(length)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement