Fix world -> local calculation with parented rigidbody. Closes #747.