x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

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.

MoveBoat

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. Based

Thanks for any help.

Product Version: UE 4.18
Tags:
more ▼

asked Dec 23 '17 at 08:42 PM in Blueprint Scripting

avatar image

jimd667
383 9 14 20

avatar image jimd667 Dec 26 '17 at 03:44 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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!

more ▼

answered Mar 12 '18 at 06:48 PM

avatar image

jimd667
383 9 14 20

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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. alt text

floating.png (54.2 kB)
more ▼

answered Dec 27 '17 at 07:51 AM

avatar image

lkav
1.3k 9 5 10

avatar image jimd667 Jan 08 '18 at 03:33 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question