Jumping inside a moving (train)

Hello everyone!

My question is how a player jump inside a moving object ? (like a train for example) wen i use de jump is go out de movement object, i want to try to snap the player but i can’t how to make this.
Thanks !

.

Not exactly sure what you are asking, but I think you are asking about forcing a movement.

There are a few ways to do it, depending on how good you want it to look. If it’s a thematic sequence, like grabbing a handhold and swinging in an animation Matinee is probably best. You would put a trigger volume on the train, and when the character overlaps with it start the Matinee, have it animate the actions getting on to the train and then return player control when it’s finished.

That is probably the best way to do it, but time consuming. If you just want a quick fix, put a trigger volume on the train, on overlap with the character, teleport the character to a spot on the train. In the overlap event, you need to have added a marker to a point on the train to use as the location to teleport to. This obviously won’t look that great. You could probably interpolate the location of the player to the point, but with that much effort it’s better to use a matinee.

A 3rd way would be to make a root motion animation. That would also look good. Root Motion can be tricky to hook up so expect that it would be time consuming to get it to work correctly.

No, i explain i use Spline Component and the train follow this Spline to point A to B and the player battle in this train
look in example in Metal Gear Rising: Revengeance [25:33 to 25:50 Jump] [28:50 to 29:13 Battle] :

Nobody can help me ? Is not possible in unreal ?

…?

To achieve the result shown on the video (where it seems to be an isolated section of the game), you could always keep the train stationary and move the background instead.

First of how fast is the train traveling? let’s say its going 45 mph in order to sync with the opening (Door) your trying to jump into you would have to do some location Prediction. Honestly like [mikepurvis][1] said [1]: https://answers.unrealengine.com/users/214/mikepurvis.html Matinee would be the way to go youll be saving a ton of headaches, RockStar did it like that.