Keyframed Movement Component
Components are basic building blocks that use data and logic to build your game. The keyframed movement component is a way to add animation keyframes to entities and have them move smoothly in your level within specified parameters.
In UEFN, you can move objects with Verse code by using functions like TeleportTo() or MoveTo() to change their positions in the world. However, it can be difficult to get smooth, continuous movement using these functions since the Verse code for these functions needs to be evaluated every simulation update. Instead of moving objects by manipulating their position, you can instead use animations. The keyframed_movement_component can provide smooth animations since the object is moving between set keyframes and does so without running into server-client delays. Think of a minecart moving smoothly down a set of rails; a keyframed movement component would be a good solution for achieving this.
To add a component to your entity, see Working with Entities and Components. The component is listed as keyframed_movement_component, which matches the Verse class for the keyframed movement component. For more information about the Verse API for the component, check out the keyframed_movement_component API reference module.
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.