(5, 0, 5) isn't the pivot that build() calculates...that would be (-4.757353, 1.4024623E-7, 4.757353). If you still get (5, 0, 5), you are setting this somewhere in your code after setting it to (0,0,0) and before calling getRotationPivot(). Just check for references in your code to setRotationPivot() and you should find it somewhere, long lost and forgotten.