Player glitches or pops out of moving boat
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.
asked Dec 23 '17 at 08:42 PM in Blueprint Scripting
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!
answered Mar 12 '18 at 06:48 PM
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.
Follow this question
Once you sign in you will be able to subscribe for any updates here