ApplyToNode() public method

Same as the Apply method, but applies to a specified Node instead of it's associated node.
public ApplyToNode ( Node node, float time, float weight, bool accumulate, float scale ) : void
node Axiom.Core.Node
time float
weight float
accumulate bool
scale float
return void
Exemplo n.º 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);
     }
 }