![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "BodySetupEnums.h"#include "Misc/ConfigCacheIni.h"#include "ClothingAssetBase.h"#include "ClothingSimulationFactory.h"#include "ClothingSimulationInstance.h"#include "ClothCollisionSource.h"#include "Components/InstancedStaticMeshComponent.h"#include "SkeletalMeshSceneProxy.h"#include "Engine/OverlapResult.h"#include "Engine/SkeletalMesh.h"#include "Engine/World.h"#include "Modules/ModuleManager.h"#include "Physics/Experimental/PhysScene_Chaos.h"#include "PhysicsEngine/EnvironmentalCollisions.h"#include "PhysicsProxy/SingleParticlePhysicsProxy.h"#include "AnimationRuntime.h"#include "ClothCollisionData.h"#include "ClothingSimulationInteractor.h"#include "ClothingSimulationTeleportHelpers.h"#include "Rendering/RenderCommandPipes.h"#include "Logging/MessageLog.h"#include "CollisionDebugDrawingPublic.h"#include "PhysicsEngine/BodySetup.h"#include "PhysicsEngine/PhysicsConstraintTemplate.h"#include "PhysicsEngine/PhysicsAsset.h"#include "PhysicsEngine/SkeletalBodySetup.h"#include "PhysicsEngine/SphylElem.h"#include "PhysicsEngine/TaperedCapsuleElem.h"#include "Rendering/SkeletalMeshLODRenderData.h"#include "RenderingThread.h"#include "SceneInterface.h"#include "Chaos/Capsule.h"#include "Chaos/Convex.h"#include "Chaos/ImplicitFwd.h"#include "Chaos/ImplicitObjectScaled.h"#include "Chaos/PhysicsObjectInterface.h"Classes | |
| class | FParallelClothTask |
| class | FParallelClothCompletionTask |
Macros | |
| #define | LOCTEXT_NAMESPACE "SkeletalMeshComponentPhysics" |
| #define | OLD_FORCE_UPDATE_BEHAVIOR 0 |
| #define | DEBUGBROKENCONSTRAINTUPDATE(x) |
Functions | |
| DECLARE_CYCLE_STAT (TEXT("CreateClothing"), STAT_CreateClothing, STATGROUP_Physics) | |
| CSV_DECLARE_CATEGORY_MODULE_EXTERN (ENGINE_API, Animation) | |
| CSV_DECLARE_CATEGORY_MODULE_EXTERN (CORE_API, Basic) | |
| DECLARE_CYCLE_STAT (TEXT("Init Articulated"), STAT_InitArticulated, STATGROUP_Physics) | |
| template<bool bCachedMatrices> | |
| FVector | GetTypedSkinnedVertexPositionWithCloth (USkeletalMeshComponent *Component, int32 VertexIndex, const FSkeletalMeshLODRenderData &LODData, const FSkinWeightVertexBuffer &SkinWeightBuffer, TArray< FMatrix44f > &CachedRefToLocals) |
| DECLARE_CYCLE_STAT (TEXT("GetClosestPointOnPhysicsAsset"), STAT_GetClosestPointOnPhysicsAsset, STATGROUP_Physics) | |
| DECLARE_CYCLE_STAT (TEXT("Cloth Sim"), STAT_ClothSimTime, STATGROUP_Physics) | |
Variables | |
| TAutoConsoleVariable< int32 > | CVarEnableClothPhysics (TEXT("p.ClothPhysics"), 1, TEXT("If 1, physics cloth will be used for simulation."), ECVF_Scalability) |
| TAutoConsoleVariable< int32 > | CVarEnableRagdollPhysics (TEXT("p.RagdollPhysics"), 1, TEXT("If 1, ragdoll physics will be used. Otherwise just root body is simulated")) |
| float | DebugLineLifetime |
| FAutoConsoleTaskPriority | CPrio_FParallelClothTask (TEXT("TaskGraph.TaskPriorities.ParallelClothTask"), TEXT("Task and thread priority for parallel cloth."), ENamedThreads::HighThreadPriority, ENamedThreads::NormalTaskPriority, ENamedThreads::HighTaskPriority) |
| #define DEBUGBROKENCONSTRAINTUPDATE | ( | x | ) |
| #define LOCTEXT_NAMESPACE "SkeletalMeshComponentPhysics" |
| #define OLD_FORCE_UPDATE_BEHAVIOR 0 |
| CSV_DECLARE_CATEGORY_MODULE_EXTERN | ( | CORE_API | , |
| Basic | |||
| ) |
| CSV_DECLARE_CATEGORY_MODULE_EXTERN | ( | ENGINE_API | , |
| Animation | |||
| ) |
| DECLARE_CYCLE_STAT | ( | TEXT("Cloth Sim") | , |
| STAT_ClothSimTime | , | ||
| STATGROUP_Physics | |||
| ) |
| DECLARE_CYCLE_STAT | ( | TEXT("CreateClothing") | , |
| STAT_CreateClothing | , | ||
| STATGROUP_Physics | |||
| ) |
| DECLARE_CYCLE_STAT | ( | TEXT("GetClosestPointOnPhysicsAsset") | , |
| STAT_GetClosestPointOnPhysicsAsset | , | ||
| STATGROUP_Physics | |||
| ) |
| DECLARE_CYCLE_STAT | ( | TEXT("Init Articulated") | , |
| STAT_InitArticulated | , | ||
| STATGROUP_Physics | |||
| ) |
| FVector GetTypedSkinnedVertexPositionWithCloth | ( | USkeletalMeshComponent * | Component, |
| int32 | VertexIndex, | ||
| const FSkeletalMeshLODRenderData & | LODData, | ||
| const FSkinWeightVertexBuffer & | SkinWeightBuffer, | ||
| TArray< FMatrix44f > & | CachedRefToLocals | ||
| ) |
| FAutoConsoleTaskPriority CPrio_FParallelClothTask(TEXT("TaskGraph.TaskPriorities.ParallelClothTask"), TEXT("Task and thread priority for parallel cloth."), ENamedThreads::HighThreadPriority, ENamedThreads::NormalTaskPriority, ENamedThreads::HighTaskPriority) | ( | TEXT("TaskGraph.TaskPriorities.ParallelClothTask") | , |
| TEXT("Task and thread priority for parallel cloth.") | , | ||
| ENamedThreads::HighThreadPriority | , | ||
| ENamedThreads::NormalTaskPriority | , | ||
| ENamedThreads::HighTaskPriority | |||
| ) |
| TAutoConsoleVariable< int32 > CVarEnableClothPhysics(TEXT("p.ClothPhysics"), 1, TEXT("If 1, physics cloth will be used for simulation."), ECVF_Scalability) | ( | TEXT("p.ClothPhysics") | , |
| 1 | , | ||
| TEXT("If 1, physics cloth will be used for simulation.") | , | ||
| ECVF_Scalability | |||
| ) |
| TAutoConsoleVariable< int32 > CVarEnableRagdollPhysics(TEXT("p.RagdollPhysics"), 1, TEXT("If 1, ragdoll physics will be used. Otherwise just root body is simulated")) | ( | TEXT("p.RagdollPhysics") | , |
| 1 | , | ||
| TEXT("If 1, ragdoll physics will be used. Otherwise just root body is simulated") | |||
| ) |
|
extern |