public void addPose(MatrixAndOpacity nPose) { int why = nPose.GetHashCode(); if (!poses.Contains(nPose)) { poses.Add(nPose); needsBufferReset = true; } else { } }
private static MatrixAndOpacity setBodyPartGroupToParams(AnimatedBodyPartGroup flag, MatrixAndOpacity posScaleOpacity) { Vector3 scale; Vector3 translation; Quaternion rotation; posScaleOpacity.matrix.Decompose(out scale, out rotation, out translation); flag.setScale(scale.X); flag.setRootPartLocation(translation); flag.setRootPartRotationOffset(rotation); return(posScaleOpacity); }