changed 3d engine from double to float

double wasn't needed and was a memory hog