Axiom.Animating.Animation.CreateNodeTrack C# (CSharp) Метод

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

Creates a new NodeAnimationTrack automatically associated with a Node.
public CreateNodeTrack ( ushort handle, Node targetNode ) : NodeAnimationTrack
handle ushort Handle to give the track, used for accessing the track later.
targetNode Axiom.Core.Node Node object which will be affected by this track.
Результат NodeAnimationTrack
		public NodeAnimationTrack CreateNodeTrack( ushort handle, Node targetNode )
		{
			// create a new track and set it's target
			NodeAnimationTrack track = CreateNodeTrack( handle );
			track.TargetNode = targetNode;

			return track;
		}

Same methods

Animation::CreateNodeTrack ( ushort handle ) : NodeAnimationTrack

Usage Example

        protected void TransformAnimation(Matrix4 exportTransform, 
										  Animation newAnim, Animation anim,
										  Skeleton newSkeleton)
        {
            foreach (NodeAnimationTrack track in anim.NodeTracks.Values) {
                NodeAnimationTrack newTrack = newAnim.CreateNodeTrack(track.Handle);
                Bone targetBone = (Bone)track.TargetNode;
                newTrack.TargetNode = newSkeleton.GetBone(targetBone.Handle);
                TransformTrack(exportTransform, newTrack, track, targetBone);
            }
        }
All Usage Examples Of Axiom.Animating.Animation::CreateNodeTrack