UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PBDCollisionSolverSettings.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "Chaos/Core.h"
5
6namespace Chaos
7{
12 {
13 public:
23
24 // Maximum speed at which two objects can depenetrate (actually, how much relative velocity can be added
25 // to a contact per frame when depentrating. Stacks and deep penetrations can lead to larger velocities)
26 // A value of zero means unlimited.
28
29 // The speed at which initially-overlapping objects depentrate.
30 // This value is used when particles do not provide an override for their MaxDepenetrationVelocity.
32
33 // How many of the position iterations should run static/dynamic friction
35
36 // How many of the velocity iterations should run dynamic friction
37 // This only applies to quadratic shapes if we have static friction enabled (NumPositionFrictionIterations > 0)
38 // RBAN is the only system that uses velocity-based friction by default (it also disables static friction)
39 // NOTE: velocity-based dynamic friction behaviour is iteration count dependent so generally want (NumVelocityFrictionIterations <= 1)
40 // @todo(chaos): fix iteration count dependence of velocity-based friction, or remove it as a feature
42
43 // How many position iterations should have shock propagation enabled
45
46 // How many velocity iterations should have shock propagation enabled
48 };
49
50} // namespace Chaos
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
Settings to control the low-level collision solver behaviour.
Definition PBDCollisionSolverSettings.h:12
int32 NumVelocityShockPropagationIterations
Definition PBDCollisionSolverSettings.h:47
int32 NumPositionFrictionIterations
Definition PBDCollisionSolverSettings.h:34
FPBDCollisionSolverSettings()
Definition PBDCollisionSolverSettings.h:14
FRealSingle DepenetrationVelocity
Definition PBDCollisionSolverSettings.h:31
int32 NumPositionShockPropagationIterations
Definition PBDCollisionSolverSettings.h:44
int32 NumVelocityFrictionIterations
Definition PBDCollisionSolverSettings.h:41
FReal MaxPushOutVelocity
Definition PBDCollisionSolverSettings.h:27
Definition SkeletalMeshComponent.h:307
FRealDouble FReal
Definition Real.h:22
float FRealSingle
Definition Real.h:14