Physical engine callback function problem