sin(0)=0, sin(90)=1, sin(180)=0, sin(270)=-1, sin(360)=sin(0)
- im guessing you can see the pattern, the values produce
a smooth waveform.. the results are within unit range, so you can simply scale
the result by a const - so if you want the max height
of your wave to be 1000, sin(n)*1000.
with some experimenting you shouldnt have too many
problems putting something half decent together..
try passing time into the sin function... sin(millisecs())
EDIT: jst a small note, you should probably stick to using
time based movement...units per sec, using frame based
inputs will yield unpredictable ouput on fast/slow
machines.
hope that helped a little.
- im guessing you can see the pattern, the values produce
a smooth waveform.. the results are within unit range, so you can simply scale
the result by a const - so if you want the max height
of your wave to be 1000, sin(n)*1000.
with some experimenting you shouldnt have too many
problems putting something half decent together..
try passing time into the sin function... sin(millisecs())
EDIT: jst a small note, you should probably stick to using
time based movement...units per sec, using frame based
inputs will yield unpredictable ouput on fast/slow
machines.
hope that helped a little.