I'm working on a project and I need to get the position of an object (not necessarily by python code) and at the same time I need to know how I can check if the position is on a special point like (0,3,6) for example. How can I do that?
I actually found out now, if someone needs to know, this is how I get the positions:
import bge import GameLogic as g
cont = g.getCurrentController() own = cont.owner pos = own.position x = pos y = pos z = pos
and this is how I check for them: if x = 3.0 and 2.5 and y == 3 and z == 2.5: print("The object has the coordinates (3.0|2.5|2.5)")