Repossessing a character on a moving boat

I can only include one media link as a new user so I included all the blueprints and relevant info in the video clip.

Here you can see how I have my BP set up for swapping to my ships controls/camera (possessing the pawn) and back to my player (character pawn).

My issue is that the location I was snapped to isn’t maintained when unpossesing my character and instead I appear somewhat randomly about my ship when repossessing my player character/re-enabling collision/leaving the snapped position.

I also have a collider enveloping the boat that changes the characters velocity to stop them combing velocities when jumping. However I don’t think this should be effecting my issue it simply adds the boats velocity and subtracts it from the characters on the X-Y vector’s.

I fixed it!

I realised the issue was that I was teleporting to the socket from wherever I was previously so I make sure to teleport my character to the exact location he will placed when possessing the boat.

Now my character has a permanent reference to the scene object/reference socket which is “ShipsWheel” on my WarGalleon BP. So when the logic returns to my character.

I also calculate the character velocity minus the boats velocity and a world location offset based on the same concept to make sure the character and the ship are somewhat in sync stopping weird jumping interactions.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.