deg out of range Angles are represented as a number between 0 and DIV (= 1024), where DIV = 2pi. sin and cos are implemented as a simple table lookup, so it's important that all angles stay within this range. In the doChangeDirection method (called from libbulletml), this restriction wasn't obeyed.