The point is that my z coordinate is constantly reset to 0.5 but what i want is that it get the object.getPosition += 0.5
Code:
def moveWallBackward ():
global pos
object = viz.pick()
if object.valid():
pos -= 0.5
object.setPosition([0,-4,pos])
vizact.onkeydown( 'j', moveWallBackward )