Attention
You are reading the latest
(unstable) version of this documentation, which may document features not available
or compatible with Godot 3.x.
Checking the stable version of the documentation...
Work in progress
Godot documentation is being updated to reflect the latest changes in version
4.0
. Some documentation pages may
still state outdated information. This banner will tell you if you're reading one of such pages.
The contents of this page are up to date. If you can still find outdated information, please open an issue.
BoneMap¶
Inherits: Resource < RefCounted < Object
Bone map for retargeting.
Description¶
This class contains a hashmap that uses a list of bone names in SkeletonProfile as key names.
By assigning the actual Skeleton3D bone name as the key value, it maps the Skeleton3D to the SkeletonProfile.
Tutorials¶
Properties¶
Methods¶
find_profile_bone_name ( StringName skeleton_bone_name ) const |
|
get_skeleton_bone_name ( StringName profile_bone_name ) const |
|
void |
set_skeleton_bone_name ( StringName profile_bone_name, StringName skeleton_bone_name ) |
Signals¶
bone_map_updated ( )
This signal is emitted when change the key value in the BoneMap. This is used to validate mapping and to update BoneMap editor.
profile_updated ( )
This signal is emitted when change the value in profile or change the reference of profile. This is used to update key names in the BoneMap and to redraw the BoneMap editor.
Property Descriptions¶
SkeletonProfile profile
void set_profile ( SkeletonProfile value )
SkeletonProfile get_profile ( )
A SkeletonProfile of the mapping target. Key names in the BoneMap are synchronized with it.
Method Descriptions¶
StringName find_profile_bone_name ( StringName skeleton_bone_name ) const
Returns a profile bone name having skeleton_bone_name
. If not found, an empty StringName will be returned.
In the retargeting process, the returned bone name is the bone name of the target skeleton.
StringName get_skeleton_bone_name ( StringName profile_bone_name ) const
Returns a skeleton bone name is mapped to profile_bone_name
.
In the retargeting process, the returned bone name is the bone name of the source skeleton.
void set_skeleton_bone_name ( StringName profile_bone_name, StringName skeleton_bone_name )
Maps a skeleton bone name to profile_bone_name
.
In the retargeting process, the setting bone name is the bone name of the source skeleton.