Animated characters
IAnimatedCharacter
is a game object extension which allows for locomotion and physics integration for objects. By using it, characters can request physical move requests, utilize animation graph functionality, and more.
As the extension is optional, it can be activated by any game object by simply acquiring it as explained in the Chapter 3, Creating and Utilizing Custom Entities
m_pAnimatedCharacter = static_cast<IAnimatedCharacter*>(GetGameObject()->AcquireExtension("AnimatedCharacter"))
Once acquired, the animated character can be used right away.
Note
Animated character functionality such as movement requests require eEPE_OnPostStepImmediate physics events, which can be enabled via IGameObject::EnablePhysicsEvent
.
Movement requests
When an animated character is physicalized as a living entity, it can request movement. This is essentially a wrapper for the pe_action_move physics request (see Chapter 9, Physics Programming, for more information) to allow simpler usage...