This will be tricky and I’m not sure it’s possible. I did a quick try with increased friction and a restitution of 0 and it still slides.
I see 2 possibilities. 1 is easy, the other is not.:
- make the Nimitz not animated everything around moves to fake a movement. I don’t know if it’s enough for your use case but that’s something that is pretty common in games.
- compute a linear velocity and angular velocity of the Nimitz, apply/add those velocities to bodies touching the ship. It might be a little tricky to blend bodies velocities and the ones coming from the ship.
I would not try to stick the body position onto the ship. I think physics internal state would be glitched after a while and you would get instabilities after a while.