DirectBoneMapper Class |
Namespace: DigitalRune.Animation.Character
The DirectBoneMapper type exposes the following members.
Name | Description | |
---|---|---|
DirectBoneMapper |
Initializes a new instance of the DirectBoneMapper class.
|
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
EstimateScale |
Analyzes the skeletons and sets ScaleAToB to a guessed scale factor.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Invalidate |
Invalidates all cached data of this bone mapper.
(Inherited from BoneMapper.) | |
MapAToB |
Sets the bone transform in the second skeleton to match skeleton pose of the first skeleton.
(Inherited from BoneMapper.) | |
MapBToA |
Sets the bone transform in the first skeleton to match skeleton pose of the second
skeleton.
(Inherited from BoneMapper.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnInvalidate |
Called when Invalidate is called.
(Overrides BoneMapperOnInvalidate.) | |
OnMapAToB |
Called when MapAToB was called.
(Overrides BoneMapperOnMapAToB.) | |
OnMapBToA |
Called when MapBToA was called.
(Overrides BoneMapperOnMapBToA.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
BoneIndexA |
Gets or sets the bone index for the first skeleton.
| |
BoneIndexB |
Gets or sets the bone index for the second skeleton.
| |
Direction |
Gets or sets the desired mapping direction.
(Inherited from BoneMapper.) | |
MapAbsoluteTransforms |
Gets or sets a value indicating whether the mapping is performed in model space.
| |
MapTranslations |
Gets or sets a value indicating whether translations are mapped or ignored. (If
MapAbsoluteTransforms is set, translations are always ignored and this
property is not used.)
| |
ScaleAToB |
Gets or sets the scale of second skeleton relative to the first skeleton. (Only relevant if
bone translations are mapped.)
| |
SkeletonMapper |
Gets or sets the skeleton mapper. (This property is set automatically and should be
treated as read-only.)
(Inherited from BoneMapper.) |
This is the simplest BoneMapper. It simply reads the bone transform of the bone in the first skeleton and sets the same bone transform in the bone in the second skeleton. This mapping can be used if the mapped skeletons and bone orientations (in the bind pose) are very similar.
The DirectBoneMapper works either in local bone space or in model space (see MapAbsoluteTransforms). Per default, it works in local bone space (MapAbsoluteTransforms is ). When working in local bone space, the bone mapper will transfer all orientation changes relative to the parent bones; for example, if the bone in the source skeleton was rotate up by 90°, it will also be rotated up by 90° in the target skeleton. When working in model space (MapAbsoluteTransforms is ) the bone mapper will transfer the absolute bone pose relative to the model space; for example, if the bone in the source skeleton is pointing down (relative to model space), the bone in the target skeleton will also be rotated so that it points down.