Why are some SpaceParameters not exposed in Project Settings?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rolfpancake

For 2D Physics there are three options in the Project Settings which are derived from the SpaceParameters of the Physics2DServer. Those are:

  • Sleep Threshold Linear (= SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD)
  • Sleep Threshold Angular (= SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD)
  • Time Before Sleep (= SPACE_PARAM_BODY_TIME_TO_SLEEP)

The thing that interests me here is that not all parameters are exposed to manipulate the physics behavior. Also the SpaceParameters of the PhysicsServer (3D) aren’t exposed at all.

Any ideas why?

:bust_in_silhouette: Reply From: Calinou

Any ideas why?

I don’t think there are reasons for specifically not exposing them in the Project Settings. It’s just that these are advanced settings that most people don’t need to change, and so nobody thought about exposing them in the Project Settings.

As a workaround, you can use an AutoLoaded script to set those in its _ready() function.

Thanks for the quick feedback. The problem I faced was that I only discovered the other settings by accident because I thought the options in the project settings were the only ones available.

Is there any discussion for Godot 4 to add an ‘advanced’ or ‘expert’ view in the project settings like some other software tools have them? So that every project setting could be changed from the Projectsettings dialog if some switch has been triggered that the user wants to see all settings?

rolfpancake | 2021-07-04 14:51