I have a very simple setup to test character movement.
import bge from mathutils import Vector def main(): cont = bge.logic.getCurrentController() own = cont.owner obj = bge.logic.getCurrentScene().objects char = bge.constraints.getCharacter playObj = obj["Cube"] play = char("Cube") print("On ground ",play.onGround) walkDirection = Vector((1.0,0.0,0.0)) play.walkDirection main()
The game setup is also very simple
However, i can’t get the character to move. I have also attached the blend file. I know this is something simple, but i just don’t see why it won’t move. I added the onGround output to check that the character existed.
test.blend (531 KB)