This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Basics
Rendering
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Unigine::AnimationFrame Class

Warning
The functionality described here is EXPERIMENTAL and is not recommended for production use. Future releases may bring significant changes to API and features. Backward compatibility of the final production-ready version is not guaranteed.
Header: #include <UnigineAnimation.h>

This class enables you to manage animation frames. A frame can be thought of as a vertical slice of values of all modifiers of all tracks played at a certain moment.

AnimationFrame Class


AnimationFrame ( ) #

Constructor. Creates an empty animation frame.

void copy ( const Ptr<AnimationFrame> & frame ) #

Copies the data from the specified source frame to the frame.

Arguments

  • const Ptr<AnimationFrame> & frame - Source frame.

void clear ( ) #

Clears animation frame data.

int getModifierInfos ( Vector<Ptr<AnimationModifierInfo>> & OUT_infos ) #

Collects information on all modifiers that are active in this frame and puts it to the specified output buffer.

Arguments

  • Vector<Ptr<AnimationModifierInfo>> & OUT_infos - Output buffer for information on all modifiers that are active in this frame.
    Notice
    This output buffer is to be filled by the Engine as a result of executing the method.

Return value

Number of modifiers.

void interpolate ( const Ptr<AnimationFrame> & frame, float k ) #

Interpolates values of all modifiers of the frame between the current frame and the specified one with the given interpolation coefficient and updates all frame modifiers with interpolated values: val = interpolate(val, frame_val, k).

Arguments

  • const Ptr<AnimationFrame> & frame - Target animation frame.
  • float k - Interpolation coefficient.

void interpolate ( const Ptr<AnimationFrame> & frame, float k, const Ptr<AnimationMask> & exclude_mask ) #

Interpolates values of all modifiers of the frame between the current frame and the specified one with the given interpolation coefficient. Values of modifiers that belong to the specified exclusion mask are ignored and kept unchanged. All frame modifiers are updated with interpolated values: val = interpolate(val, frame_val, k).

Arguments

  • const Ptr<AnimationFrame> & frame - Target animation frame.
  • float k - Interpolation coefficient.
  • const Ptr<AnimationMask> & exclude_mask - Animation mask to be excluded from interpolation.
Last update: 2024-04-19
Build: ()