UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PhysicsSettingsCore.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
9#include "BodySetupEnums.h"
11
12#include "PhysicsSettingsCore.generated.h"
13
14
18UCLASS(config=Engine,defaultconfig,meta=(DisplayName="Physics"), MinimalAPI)
20{
22
23
24 UPROPERTY(config,EditAnywhere,Category = Constants)
25 float DefaultGravityZ;
26
28 UPROPERTY(config,EditAnywhere,Category = Constants)
29 float DefaultTerminalVelocity;
30
32 UPROPERTY(config,EditAnywhere,Category = Constants)
33 float DefaultFluidFriction;
34
36 UPROPERTY(config,EditAnywhere,Category = Constants,meta = (ClampMin = "0",UIMin = "0"))
37 int32 SimulateScratchMemorySize;
38
40 UPROPERTY(config,EditAnywhere,meta = (ClampMin = "1",UIMin = "1",ClampMax = "127",UIMax = "127"),Category = Constants)
41 int32 RagdollAggregateThreshold;
42
44 UPROPERTY(config,EditAnywhere,AdvancedDisplay,meta = (ClampMin = "-1.0",UIMin = "-1.0",ClampMax = "10.0",UIMax = "10.0"),Category = Constants)
45 float TriangleMeshTriangleMinAreaThreshold;
46
48 UPROPERTY(config,EditAnywhere,Category = Simulation)
49 bool bEnableEnhancedDeterminism;
50
52 UPROPERTY(config,EditAnywhere,AdvancedDisplay,Category = Simulation)
53 bool bEnableShapeSharing;
54
56 UPROPERTY(config,EditAnywhere,AdvancedDisplay,Category = Simulation)
57 bool bEnablePCM;
58
60 UPROPERTY(config,EditAnywhere,AdvancedDisplay,Category = Simulation)
61 bool bEnableStabilization;
62
64 UPROPERTY(config,EditAnywhere,AdvancedDisplay,Category = Simulation)
65 bool bWarnMissingLocks;
66
68 UPROPERTY(config,EditAnywhere,Category = Simulation)
69 bool bEnable2DPhysics;
70
73 UPROPERTY(config)
74 bool bDefaultHasComplexCollision_DEPRECATED;
75
76
78 UPROPERTY(config, EditAnywhere, Category = Simulation, meta = (ClampMin = "0", UIMin = "0"))
79 float BounceThresholdVelocity;
80
82 UPROPERTY(config, EditAnywhere, Category=Simulation)
84
86 UPROPERTY(config, EditAnywhere, Category = Simulation)
87 TEnumAsByte<EFrictionCombineMode::Type> RestitutionCombineMode;
88
90 UPROPERTY(config, EditAnywhere, Category = Simulation)
91 float MaxAngularVelocity;
92
94 UPROPERTY(config, EditAnywhere, Category = Simulation)
95 float MaxDepenetrationVelocity;
96
98 UPROPERTY(config, EditAnywhere, Category = Simulation, meta = (ClampMin = "0.001", UIMin = "0.001"))
99 float ContactOffsetMultiplier;
100
102 UPROPERTY(config, EditAnywhere, Category = Simulation, meta = (ClampMin = "0.0001", UIMin = "0.0001"))
103 float MinContactOffset;
104
106 UPROPERTY(config, EditAnywhere, Category = Simulation, meta = (ClampMin = "0.001", UIMin = "0.001"))
107 float MaxContactOffset;
108
113 UPROPERTY(config, EditAnywhere, Category = Simulation)
114 bool bSimulateSkeletalMeshOnDedicatedServer;
115
118 UPROPERTY(config, EditAnywhere, Category = Simulation)
119 TEnumAsByte<ECollisionTraceFlag> DefaultShapeComplexity;
120
122 UPROPERTY(config, EditAnywhere, Category = ChaosPhysics)
123 FChaosSolverConfiguration SolverOptions;
124
126
127 PHYSICSCORE_API virtual void PostInitProperties() override;
128
129protected:
130 static PHYSICSCORE_API void SetDefaultSettings(UPhysicsSettingsCore* InSettings);
131
132private:
133 // Override default settings.
134 // This should be set up to point to the CDO of the leaf settings class (as edited in Project Settings)
135 static UPhysicsSettingsCore* DefaultSettings;
136};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Engine.Build.cs:7
Definition EnumAsByte.h:22
Definition DeveloperSettings.h:24
Definition PhysicsSettingsCore.h:20
Definition ChaosSolverConfiguration.h:52