I am attempting make change spatial properties of a cube by using a Python script which is triggered by keyboard logic. After pressing W the following script gets executed:
import bpy import mathutils Cube = bpy.data.objects['Cube'] Cube.location += mathutils.Vector((1, 1, 1)) print(Cube.location)
As seen on the console output in the screenshot, the cube's location gets updated correctly, but in the game view nothing happens. Whenever game mode is exited, the cube is suddenly at the location that the script has placed it.
Am I overlooking some setting or connection here? Using the keyboard modifier to simply change the cube's location in the logic bricks does work, but using a script which changes the location has no result in the game view.