Esempio n. 1
0
		internal Influence? TransformFor(Bone b)
		{
			var track = coreAnimation.GetTrack(b.CoreBone);

			return (track != null && weight > 0)
				? new Influence(weight, track.GetTransformAt(time))
				: default(Influence?);
		}
Esempio n. 2
0
		internal IEnumerable<Influence> GetInfluencesFor(Bone b)
		{
			return animations.Select(x => x.TransformFor(b)).
				Where(x => x != null).
				Cast<Influence>();
		}