Animation
Animation Additive Blend#
Additive blending of two animations.
Additive blending is a technique for combining skeletal model animations, enabling smooth transitions and the seamless merging of character or object movements.
SDK Path: <SDK_INSTALLATION>data/csharp_component_samples/animation/animation_additive_blend
Animation Lerp Blend#
Linear interpolation of two animations.
Interpolating skeletal animations allows you to create smooth and natural transitions between different character or object movements.
SDK Path: <SDK_INSTALLATION>data/csharp_component_samples/animation/animation_lerp_blend
Animation Playback#
Animation playback uses animation layers.
The possibility to control every frame provides boundless opportunities in setting the animation playback.
SDK Path: <SDK_INSTALLATION>data/csharp_component_samples/animation/animation_playback
Bones Partial Blend#
This sample demonstrates partial blending between two animations using bone-specific interpolation.
The AnimationPartialInterpolation.cs component plays two skeletal animations simultaneously on a skinned mesh and blends them only for selected bones. The blend weight can be adjusted at runtime using the keyboard.
Use the interpolatedBones array in the Parameters window to define which bones are affected by blending. The ObjectMeshSkinned class is used to apply animation layers and interpolate transforms.
SDK Path: <SDK_INSTALLATION>data/csharp_component_samples/animation/bones_partial_blend
Bones Rotation#
This sample demonstrates how to control animation playback and directly modify bone transforms.
The AnimationRotation.cs component plays skeletal animations using .anim files and programmatically applies additional transformations to specific bones. In this example, the shooting animation is blended with the idle animation, while the turret is rotated via code by modifying the transform of a specific joint.
Animations are assigned to separate layers using the ObjectMeshSkinned class. Blending is performed between the idle animation and a dynamically selected shooting animation
SDK Path: <SDK_INSTALLATION>data/csharp_component_samples/animation/bones_rotation
Track Playback#
This example demonstrates how to use Tracker to animate objects by changing their position, rotation, and scale through tracks created in the tool.
Tracks in code are referred to via names and IDs.
The TrackPlayback component uses a C# wrapper for Tracker functionality implemented in the Tracker.cs file.
SDK Path: <SDK_INSTALLATION>data/csharp_component_samples/animation/track_playback
The information on this page is valid for UNIGINE 2.20 SDK.