UPhysicsSettingsCore

Default physics settings.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

PhysicsCore

Header

/Engine/Source/Runtime/PhysicsCore/Public/PhysicsSettingsCore.h

Include

#include "PhysicsSettingsCore.h"

Syntax

class UPhysicsSettingsCore : public UDeveloperSettings

Remarks

Default physics settings.

Variables

Name Description

Public variable

bool

 

bEnable2DPhysics

Can 2D physics be used (Box2D)?

Public variable

bool

 

bEnablePCM

Enables persistent contact manifolds.

Public variable

bool

 

bEnableShapeSharing

Enables shape sharing between sync and async scene for static rigid actors

Public variable

bool

 

bEnableStabilization

Enables stabilization of contacts for slow moving bodies.

Public variable

float

 

BounceThresholdVelocity

Minimum relative velocity required for an object to bounce.

Public variable

bool

 

bSimulateSkeletalMeshOnDedicatedServer

If true, simulate physics for this component on a dedicated server.

Public variable

bool

 

bWarnMissingLocks

Whether to warn when physics locks are used incorrectly.

Public variable

float

 

ContactOffsetMultiplier

Contact offset multiplier.

Public variable

float

 

DefaultFluidFriction

Default fluid friction for Physics Volumes.

Public variable

float

 

DefaultGravityZ

Default gravity.

Public variable

TEnumAsByte< EC...

 

DefaultShapeComplexity

Determines the default physics shape complexity.

Public variable

float

 

DefaultTerminalVelocity

Default terminal velocity for Physics Volumes.

Public variable

TEnumAsByte< EF...

 

FrictionCombineMode

Friction combine mode, controls how friction is computed for multiple materials.

Public variable

float

 

MaxAngularVelocity

Max angular velocity that a simulated object can achieve.

Public variable

float

 

MaxContactOffset

Max Contact offset.

Public variable

float

 

MaxDepenetrationVelocity

Max velocity which may be used to depenetrate simulated physics objects. 0 means no maximum.

Public variable

float

 

MinContactOffset

Min Contact offset.

Public variable

int32

 

RagdollAggregateThreshold

Threshold for ragdoll bodies above which they will be added to an aggregate before being added to the scene

Public variable

TEnumAsByte< EF...

 

RestitutionCombineMode

Restitution combine mode, controls how restitution is computed for multiple materials.

Public variable

int32

 

SimulateScratchMemorySize

Amount of memory to reserve for PhysX simulate(), this is per pxscene and will be rounded up to the next 16K boundary

Public variable

FChaosSolverCon...

 

SolverOptions

Options to apply to Chaos solvers on creation

Public variable

float

 

TriangleMeshTriangleMinAreaThreshold

Triangles from triangle meshes (BSP) with an area less than or equal to this value will be removed from physics collision data.

Constructors

Name Description

Public function

UPhysicsSettingsCore

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static

UPhysicsSett...

 

Get()

Protected function Static

void

 

SetDefaultSettings

(
    UPhysicsSettingsCore* InSettin...
)

Overridden from UObject

Name Description

Public function Virtual

void

 

PostInitProperties()

Called after the C++ constructor and after the properties have been initialized, including those loaded from config.

Constants

Name

Description

DefaultSettings

Override default settings.

Deprecated Variables

Name Description

Public variable

bool

 

bDefaultHasComplexCollision_DEPRECATED

If true, static meshes will use per poly collision as complex collision by default.