Constant means a variable that will not change.. Some functions in C++ need constant variables to be able to use them....
so probably set
const float density = 0.0625f;
fyi the f at the end is to explicitly say its a float and not a double.
calling by value or sending a variable by value is that for instance you have variable test in ur main loop......... and call it in a function like so
void main(void)
{
int test = 10;
trashfunction(test);
trash2function(&test);
}
in the first trash function i am sending it by value .... so the function is getting a copy of the variable what ever changes are made to that variable in the function wont be reflected in the variable test.
the sencond trash function i am sending the variable by reference... this means that i am passing a "reference of the variable" you catch it and you will have direct access to all the values that variable contains and you any changes made in the function will be reflected in the variable.