optimizing parameters for physics scene