Player glitches or pops out of moving boat

Hello,

Part of my game takes place on a boat and the player blueprint is manually placed inside the boat while working in the editor. The boat mesh is using complex collision as simple and it follows a spline path. When you play the game the player is able to walk around the boat just fine but intermittently can pop out of the boat or be jittered into another position while the boat is moving along a spline path.

I did some research and a few people recommended to keep the boat still and move the environment around it but that is way too difficult since I would be moving thousands of items to perfectly match up my scene when I could just move the boat only.

Below is a snapshot of how i move the boat along the spline and I do not use any physics.

I also found a comment on the forums from TheJamsh that I cannot find anymore info on. If anyone knows more about what they mean that would help me in my situation.

Thanks for any help.

Still hoping for some feedback here, One option is too have a very generic base camera the player can control while on the boat and then once docked the camera gives control to the main First Person blueprint. I’m still not sure though if the camera would pop around while the boat moved and how that would fix the issue or if there is a better alternative.

Hi
I’ve never done something like this.
I think the problem is that you use set World Location and Rotation.

You could try this. (The Floating Pawn Movement is a Component)
For the rotation, you need something else.

GL let me know if it works.

225163-floating.png

Thanks for the answer, I looked into it and found that its harder achieve then I thought. It seems like rotation is a major issue for everyone when it comes to placing a character inside a moving object. I will try to see if I can get something rigged up and post back my results here.

I wanted to update this since I have had some time to work it through and get a system going for my game that does not pop or glitch the player around the boat. I went with a camera system like GTA 4, when the player gets on the boat or on the metro the player camera goes to another camera around the vehicle and can switch the view while the ride is happening. When it reaches the destination the player can choose to exit the vehicle onto the platform or stay and keep going. They cannot move the player or do anything besides switch the camera views which really limits the possibility for bugs.

This was the best solution for my setup because even though an elevator can go up and down with the player inside and moving around it only moves on the Z axis. When the player is inside an object the rotates on the XY axis that’s where it gets tricky and you have to come up with creative ways to fix the rotation popping of the player against that object.

Hope this helps for anyone else and best of luck!