PHYS-14 #time 40m #comment Finally tracked down the orientationMat problem. For some reason I had removed the contents of an if branch that set the value to 0, leading to completely unpredictable values and behavior.