Process for animating player interacting with animated objects?

OK, so I’m not getting satisfactory answers for this. There must be a proper way for creating a sequence of animations for when the player is interacting with a door, for example:

  • Player clicks on door (assume the interaction system is implemented).
  • Door opens.
  • Player starts stepping through automatically (NOT at player input), at mid point of door’s animation. Keep in mind, the player character is not only animated, but also moved from one side of the door to the other. I don’t know much about animation, I don’t know if the movement from A to B can/should be part of the animation, or is completely separate? Would like to know.
  • Once on the other side, the door can start closing.

Doesn’t have to be exactly like this, but you get the idea.

Surety, after 28 years of unreal there must be a PROPER RECOMMENDED way of doing this common thing. What is it?

Thanks.

Hey @AllGamesSuck!

Yeah this would be done using montages. You would have a montage for the door and a montage for the player, and trigger them both when you interact with the door. Naturally, you’d want to have a long lead-up before player motion so the player doesn’t run into the door, and you don’t want it to activate the door and then the player walk away.

But yeah, montage + root motion! Root motion would ensure the movement of the character along with its skeletal mesh through the doorway.

Hope that helps!

1 Like

Thanks. What about an actor sequence component or just a timeline with rotate, for the door?

Yeah, you could absolutely just use a timeline! Just keep in mind you’ll need to have a system for which side of the door you’re on, so maybe go with two separate timelines with a branch to determine which one to use.

That being said, a sequence would probably work best as you can mold the movements of the door around the player character’s montage.