How to let characters react to environment? (Animationwise)

Heya,

i was wondering what i have to search to find Information about something like this:

In this little screenshot i took from a random Letsplay of AC Unity our main Character reacts to the placement of the Crowd! So he turns to the side a little bit.

How is this called?

Thanks in advance

Cheers

Hey @Dialgos
If you’re looking for an easy blueprint you can call, I’d recommend using the Control Rig Animation BP Node, Where you can define a set of conditionals to move the players’ rig depending on where the NPC interacts with it by getting its location.
Here’s a step-by-step guide on setting the nodes:

I hope this can help, and let me know if you have more questions!
-Zen

3 Likes

I think thats exactly what i have been searching!

Thanks a lot!

@Dialgos
Awesome, glad to help!
Happy developing! :vulcan_salute:
-Zen

It’s called predictive animation.
Some times -incorrectly - reactive animation.

The goal is to know at least 1 frame beforehand what will happen, so as to que the correct animation for it.

For something that moves, like the crowd, you’d also need to take their heading into account and probably manipulate them as well (a human is likely to slow down when something gets in the way and what not).

Anyway, the most basic way to do it is to equip the actors with some sockets that the main character will test distances for, and then use for hand placement/animation adjustment etc.

Every implementation varies, as always. And no idea is necessarily bad when it comes to getting the feel you want in your game, but it is a rather advanced topic, which even few AAA games manage to do correctly.
(Best one is likely the rage engine, as it features full predictive AI).