>>362
すまん。よくみたら362のやつ、
var direction = PosChecker.getSideDirection〜の行で
PosChecker.getSideDirectionを2回書いてないか?