Is it possible to use a more direct path towards an object? I want to create a game in Python as much as possible without using many logic bricks, controls will not be done with the keyboard but through another program. it was my intention to use a code like this to controll rotations:
scene = bge.logic.getCurrentScene() obj = scene.objects['player'] obj.dRot = [2, 0, 0] # or motion = obj.actuators['Motion'] motion.dRot = [2, 0, 0] obj.activate(motion)
However, obj is not being recognized and I have no idea how to apply rotations in Python. Can anyone help me with this?