Beispiel #1
0
 public Joint(string symbol, string name, Matrix4 revbind, Matrix4 initialpose, IEnumerable<Joint> children, AnimationSequence anim)
 {
     Symbol = symbol;
     Name = name;
     ReverseBindingMatrix = revbind;
     InitialPose = initialpose;
     Children = children.Select(j => j.Clone()).ToArray();
     Animation = anim == null ? new AnimationSequence(24.0, new AnimationFrame[0], 0) : anim.Clone();
 }
Beispiel #2
0
 public IndexedJoint(int index, string symbol, string name, Matrix4 revbind, Matrix4 initialpose, IEnumerable <Joint> children, AnimationSequence anim)
     : base(symbol, name, revbind, initialpose, children, anim)
 {
     Index = index;
 }
Beispiel #3
0
 protected AnimationSequence(AnimationSequence clonefrom)
     : this(clonefrom.FrameRate, clonefrom.InitialPose, clonefrom.Frames, clonefrom.NumFrames)
 {
 }
Beispiel #4
0
        public Joint WithTrimmedAnimation(int startframe, int numframes, double framerate)
        {
            AnimationSequence seq = Animation.Trim(startframe, numframes, framerate);

            return(new Joint(Symbol, Name, ReverseBindingMatrix, seq.InitialPose, Children.Select(j => j.WithTrimmedAnimation(startframe, numframes, framerate)), seq));
        }
Beispiel #5
0
 public Joint(string symbol, string name, Matrix4 revbind, Matrix4 initialpose, IEnumerable <Joint> children, AnimationSequence anim)
 {
     Symbol = symbol;
     Name   = name;
     ReverseBindingMatrix = revbind;
     InitialPose          = initialpose;
     Children             = children.Select(j => j.Clone()).ToArray();
     Animation            = anim == null ? new AnimationSequence(24.0, new AnimationFrame[0], 0) : anim.Clone();
 }
 protected AnimationSequence(AnimationSequence clonefrom)
     : this(clonefrom.FrameRate, clonefrom.InitialPose, clonefrom.Frames, clonefrom.NumFrames)
 {
 }