Box bouncing scale, check quat and matrix4 class