![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "PhysicsEngine/BodySetup.h"#include "BodySetupEnums.h"#include "Engine/Engine.h"#include "Engine/StaticMesh.h"#include "Components/SkinnedMeshComponent.h"#include "Engine/World.h"#include "PhysicsEngine/PhysicsSettings.h"#include "Interfaces/ITargetPlatform.h"#include "Interfaces/ITargetPlatformManagerModule.h"#include "Animation/AnimStats.h"#include "DerivedDataCacheInterface.h"#include "Physics/PhysicsInterfaceTypes.h"#include "UObject/UObjectIterator.h"#include "Components/SplineMeshComponent.h"#include "PhysicsEngine/BoxElem.h"#include "UObject/FortniteReleaseBranchCustomObjectVersion.h"#include "Chaos/Convex.h"#include "PhysicalMaterials/PhysicalMaterial.h"#include "PhysicsEngine/ConvexElem.h"#include "ProfilingDebugging/CookStats.h"#include "PhysicsEngine/LevelSetElem.h"#include "Serialization/MemoryWriter.h"#include "PhysicsEngine/SphereElem.h"#include "UObject/AnimPhysObjectVersion.h"#include "Chaos/TriangleMeshImplicitObject.h"#include "Experimental/ChaosDerivedData.h"#include "Physics/Experimental/ChaosDerivedDataReader.h"#include "Chaos/CollisionConvexMesh.h"#include "PhysicsEngine/Experimental/ChaosCooking.h"#include "PhysicsEngine/SphylElem.h"#include "PhysicsEngine/TaperedCapsuleElem.h"#include "PhysicsEngine/MLLevelSetElem.h"#include "PhysicsEngine/SkinnedTriangleMeshElem.h"Macros | |
| #define | VERIFY_COOKED_PHYS_DATA 0 |
| #define | LOCTEXT_NAMESPACE "PhysicsAsset" |
| #define LOCTEXT_NAMESPACE "PhysicsAsset" |
| #define VERIFY_COOKED_PHYS_DATA 0 |
Enable to verify that the cooked data matches the source data as we cook it
| ENGINE_API TAutoConsoleVariable< float > CVarContactOffsetFactor | ( | TEXT("p.ContactOffsetFactor") | , |
| -1. | f, | ||
| TEXT("Multiplied by min dimension of object to calculate how close objects get before generating contacts. < 0 implies use project settings. Default: 0.01") | , | ||
| ECVF_Default | |||
| ) |
| ENGINE_API TAutoConsoleVariable< float > CVarMaxContactOffset | ( | TEXT("p.MaxContactOffset") | , |
| -1. | f, | ||
| TEXT("Max value of contact offset, which controls how close objects get before generating contacts. < 0 implies use project settings. Default: 1.0") | , | ||
| ECVF_Default | |||
| ) |
| DECLARE_CYCLE_STAT | ( | TEXT("AddGeomToSolver") | , |
| STAT_AddGeomToSolver | , | ||
| STATGROUP_Physics | |||
| ) |
| DECLARE_CYCLE_STAT | ( | TEXT("AddShapesToRigidActor") | , |
| STAT_AddShapesToActor | , | ||
| STATGROUP_Physics | |||
| ) |
| DECLARE_CYCLE_STAT | ( | TEXT("Create Physics Meshes") | , |
| STAT_CreatePhysicsMeshes | , | ||
| STATGROUP_Physics | |||
| ) |
| DEFINE_LOG_CATEGORY | ( | LogPhysics | ) |
| PRAGMA_ENABLE_DEPRECATION_WARNINGS DEFINE_STAT | ( | STAT_PhysXCooking | ) |
| float GetClosestPointAndNormalImpl | ( | const UBodySetup * | BodySetup, |
| const FVector & | WorldPosition, | ||
| const FTransform & | LocalToWorld, | ||
| FVector * | ClosestWorldPosition, | ||
| FVector * | FeatureNormal | ||
| ) |
| bool IsRuntime | ( | const UBodySetup * | BS | ) |
| bool IsRuntimeCookingEnabled | ( | ) |