Skip to content

Instantly share code, notes, and snippets.

@CGTarian
CGTarian / gist:a41ef2e8297d03df41d0dd79a498729c
Created January 5, 2017 01:21
Процедурная анимация персонажа Рэя под музыку
$RLegTY = sin((time*3.1415927*30/20.455+ Animation_CTRL.RLeg_Freq_Ofst )* Animation_CTRL.RLeg_Freq )* Animation_CTRL.RLeg_Ampl + Animation_CTRL.RLeg_Ampl_Ofst;
$RFootRX = sin((time*3.1415927*30/20.455+2)*2)*20;
ray_ac_rt_footIK.translateY = $RLegTY;
if ($RLegTY <= 0)
{
ray_ac_rt_footIK.translateY = 0;
ray_ac_rt_footIK.rotateX = 0;