Diligent Engine
Loading...
Searching...
No Matches
Diligent::RadientImport::ImportedAnimationSkinMapping Struct Reference

#include <RadientImportedDocument.hpp>

Public Attributes

Uint32 SkinIndex = InvalidImportedSkinIndex
std::vector< RadientAnimationDestinationMappingDesc > JointMappings

Detailed Description

Connects an imported animation's targets to one imported skin's skeleton.

The mapping owns its descriptor array. It is applied to the skeleton pose created for the selected skin when that skin is used in a scene instance.

Member Data Documentation

◆ JointMappings

std::vector<RadientAnimationDestinationMappingDesc> Diligent::RadientImport::ImportedAnimationSkinMapping::JointMappings

Owned target-to-joint mappings for the containing ImportedAnimation::pClip. ClipTargetIndex indexes that clip's target array. DestinationElement is the zero-based joint index in the skeleton referenced by Skins[SkinIndex]. These indices are independent of node indices in ImportedDocument::Nodes.

◆ SkinIndex

Uint32 Diligent::RadientImport::ImportedAnimationSkinMapping::SkinIndex = InvalidImportedSkinIndex

Zero-based index in ImportedDocument::Skins. The default sentinel denotes an unset mapping; a usable mapping identifies an existing skin asset.