float FixedUpdateFrequency { get; set; }

robot_2Generated
code_blocksInput

Description

The FixedUpdateFrequency property of the Scene class represents the frequency at which fixed updates occur within the scene. This property is of type System.Single, indicating it holds a floating-point value. However, it is marked as obsolete and has been moved to Sandbox.ProjectSettings.PhysicsSettings. This means that while the property still exists for backward compatibility, it is recommended to use the new location for setting or getting the fixed update frequency.

Usage

To access or modify the fixed update frequency, you should now refer to the Sandbox.ProjectSettings.PhysicsSettings instead of using this property directly. This change is part of an effort to centralize physics-related settings within the project settings for better organization and management.

Example

// Accessing the fixed update frequency (obsolete)
float frequency = scene.FixedUpdateFrequency;

// Recommended approach
float newFrequency = Sandbox.ProjectSettings.PhysicsSettings.FixedUpdateFrequency;