thats quite tricky, but we may just check falling to side/front/hind and return staticMode solution otherwise
isOnBorder(flag.?.?) not checked