yeah, i had code somthing like that before, but the camera still jumps around to easily, it's hard cuz i wan't you to be able to turn quickly like if your getting shot at but accurate enough to be able to snipe at long range targets, i'll post the function i made, basicly i have the equasion(spl?) for a parabola curve and i give it a value for x and a (y=ax^2)and it'll give me the y value. It works somewhat the way i want but i'ts still jumpy in the middle numbers (like when your just kinda looking around and not trying to turn real fast) i'm still trying to fegure it out and it's ticking me off...
function smoothangle(formerval#,scalefactor#,value#)
rem think of a graph of a parabola, i'm giving it an x value
rem and a scale factor"a" ex. y=ax^2 and it'll give me back
rem an angle all ready for me to use. (hopfuly)
c# = scalefactor#*(value#*value#)
if value# < 0
c# = -1*c#
rem this is so that if value is negitive it'll turn the opposite
rem way, oneway turning wouldn't be fun...
endif
if abs(c#) > abs(value#) then c# = value#
rem you don't want to be able to turn to fast ^_^
c# = wrapvalue(formerval# + c#)
endfunction c#
CPU
Sparring - Loved by many, Pefected by few.
I'm going to live forever, or DIE IN THE ATTEMPT!!!"