aws / lumberyard

Amazon Lumberyard is a free AAA game engine deeply integrated with AWS and Twitch – with full source.
Other
2.04k stars 541 forks source link

EmotionFX parameterized motion node #539

Open DDR4eG opened 3 years ago

DDR4eG commented 3 years ago

This PR adds a new anim graph state machine node, which takes motion name as an input string parameter, searches it in a current motion set, and plays motion similar to AnimGraphMotionNode.

image

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AMZN-Gene commented 3 years ago

Very cool! Is there an example use case you'd recommend for using this type of node? What happens if there aren't any motions in the set matching?

DDR4eG commented 3 years ago

Hi @AMZN-Gene, I've left a more detailed comment on this with an example in the original forum post (ticket #LY-112755).

An empty motion will be played (T-pose for characters) if there is no motion with a given name in current motionset.