I want to make a character, which would move, and I want to use character physics and python for easyer controll. I know you get the character wrapper with
wraper = bge.constraints.getCharacter(own) Then I want to make it move, but I can't figure out how
walkDirection works. I did it like so:
import bge cont = bge.logic.getCurrentController() own = cont.owner wraper = bge.constraints.getCharacter(own) direction = (0, 1, 0) wraper.walkDirection(direction)
But whnever I press the key and run the code I get an error:
'Vector' object not callable
I can't find any examples of how that's done on the intrnet, and I tryed changing the code many times.
Please, can someone tell me how it's done? Thanks.