hi , I need some help with creating a camera effect .
The effect must be like a breathing movement but
I want to do this in code , any comments or help please ?
jb.
edit.
what I have is this at the moment ..
var mov=0
int dir=0
void camera_effect ()
{
if (mov <=-0.3)dir=0
if (mov>=0.3)dir=1
if (dir==0)mov+=0.1
if (dir==1)mov-=0.1
camera.tilt+=mov*time_step
smooth (mov,0.95)
}
is there a better way ?