Im trying to get my head round python and its going ok but i just wondered if i could ask a question about the walk script in the walkthrough template from blender3d.com
player = cont.getOwner()
speed = player.maxspeed
vec = [0, 0, 0]
if player.flymode:
shoulder = cont.getActuator('shoulderipo').getOwner()
playerOri = shoulder.getOrientation()
else:
playerOri = player.getOrientation()
playerX = [playerOri[0][0], playerOri[1][0], playerOri[2][0]]
playerY = [playerOri[0][1], playerOri[1][1], playerOri[2][1]]
if fwdkey.isPositive():
vec = VEC_add(vec, playerY)
Im just wondering what the second bracket is when defining playerOri for playerx and y. (eg [playerOri[0][1], etc) what does that 1 refer to? Is it to with getting local coords rather than global?
Thanks