TheRispo
03-03-2011, 07:00 PM
Hi everyone!. So I'm trying to animate a sine wave's frequency to make it slow down, for this I'm using a float value between 0 and 1 to multiply it to the frequency. However the resulting curve gets all funky and it's not what I was expecting. Could you guys take a look at the expression and help me find what is wrong or what should I do to get the effect??
pointLightShape1.intensity = sin(time*(lightCtrl.lightFrequency * lightCtrl.mult)*4)+4
And here is what I've got so far (the blue lines) against what I want to achieve (the ugly black lines... sorry about that)
http://img718.imageshack.us/img718/4816/sinewavea.jpg (http://img718.imageshack.us/i/sinewavea.jpg/)
Thanks in advance
pointLightShape1.intensity = sin(time*(lightCtrl.lightFrequency * lightCtrl.mult)*4)+4
And here is what I've got so far (the blue lines) against what I want to achieve (the ugly black lines... sorry about that)
http://img718.imageshack.us/img718/4816/sinewavea.jpg (http://img718.imageshack.us/i/sinewavea.jpg/)
Thanks in advance
