Axiom.Animating.Skeleton.GetBone C# (CSharp) Метод

GetBone() публичный Метод

Gets a bone by its name.
public GetBone ( string name ) : Bone
name string Name of the bone to retrieve.
Результат Bone
		public virtual Bone GetBone( string name )
		{
			if ( !namedBoneList.ContainsKey( name ) )
			{
				//throw new Exception( "Bone with the name '" + name + "' not found." );
				return null;
			}

			return (Bone)namedBoneList[ name ];
		}

Same methods

Skeleton::GetBone ( ushort handle ) : Bone

Usage Example

Пример #1
0
 public void Apply(Skeleton skeleton, float time, float weight, bool accumulate, float scale)
 {
     // loop through tracks and update them all with current time
     foreach (KeyValuePair <ushort, NodeAnimationTrack> pair in nodeTrackList)
     {
         NodeAnimationTrack track = pair.Value;
         Bone bone = skeleton.GetBone(pair.Key);
         track.ApplyToNode(bone, time, weight, accumulate, scale);
     }
 }
All Usage Examples Of Axiom.Animating.Skeleton::GetBone