Description
The PhysicsSubSteps
property of the Scene
class is an integer value that specifies the number of sub-steps used in the physics simulation within a scene. This property is marked as obsolete and has been moved to Sandbox.ProjectSettings.PhysicsSettings
. It is recommended to use the new location for configuring physics sub-steps.
Usage
To configure the number of physics sub-steps for a scene, you should now use the Sandbox.ProjectSettings.PhysicsSettings
instead of directly accessing this property. This change helps centralize physics settings and improve maintainability.
Example
// Example of accessing the obsolete PhysicsSubSteps property
// Note: This is for demonstration purposes only, as the property is obsolete.
Scene myScene = new Scene();
int subSteps = myScene.PhysicsSubSteps; // This will show a warning due to obsolescence
// Recommended approach:
// Use Sandbox.ProjectSettings.PhysicsSettings to configure physics sub-steps
// int subSteps = Sandbox.ProjectSettings.PhysicsSettings.PhysicsSubSteps;