Jumping inside a moving (train)
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.
answered Jul 23 '16 at 04:51 PM
answered Jul 26 '16 at 02:54 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here