Physics core update

I think we have managed to fix the issue with the physics core. If not I
will need to do more work on it when I wake up. I tested the ability to
set the position of the physics object and it looked it saved