Re: sound shooter in C++. A problem
@kianoosh
Do your stuff, then pan*100
Here's another function which will undoubtedly save you hours
double range_convert(double old_value, double old_min, double old_max, double new_min, double new_max)
{
return ((old_value - old_min) / (old_max - old_min) ) * (new_max - new_min) + new_min;
}
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector