Game Development Reference
In-Depth Information
local percent =
clamp(0, 1, (currentTime - startTime) / blendTime);
Animation.SetWeight(animation, 1 - percent);
end
function LinearBlendTo(
startAnimation, endAnimation, blendTime, startTime,
currentTime)
LinearBlendIn(
endAnimation, blendTime, startTime, currentTime);
LinearBlendOut(
startAnimation, blendTime, startTime, currentTime);
end
Search WWH ::




Custom Search