UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PhysicsThreadLibrary.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
"
6
#include "
UObject/ObjectMacros.h
"
7
#include "
UObject/Object.h
"
8
#include "
Templates/SubclassOf.h
"
9
#include "
Engine/EngineTypes.h
"
10
#include "
UObject/UnrealType.h
"
11
#include "
UObject/ScriptMacros.h
"
12
#include "
UObject/Interface.h
"
13
#include "
Kismet/BlueprintFunctionLibrary.h
"
14
#include "
Engine/CollisionProfile.h
"
15
#include "
PhysicsProxy/SingleParticlePhysicsProxy.h
"
16
#include "
PhysicsEngine/BodyInstance.h
"
17
#include "PhysicsThreadLibrary.generated.h"
18
19
UCLASS
(meta = (ScriptName =
"PhysicsThreadLibrary"
), MinimalAPI)
20
class
UPhysicsThreadLibrary
:
public
UBlueprintFunctionLibrary
21
{
22
GENERATED_BODY
()
23
24
31
UFUNCTION
(BlueprintCallable, Category =
"Utilities"
)
32
static
void
AddForce
(
FBodyInstanceAsyncPhysicsTickHandle
Handle
,
FVector
Force
,
bool
bAccelChange =
false
)
33
{
34
if
(
Handle
)
35
{
36
if
(bAccelChange)
37
{
38
Handle
->AddForce(
Force
*
Handle
->M());
39
}
40
else
41
{
42
Handle
->AddForce(
Force
);
43
}
44
}
45
}
46
47
};
BlueprintFunctionLibrary.h
BodyInstance.h
CollisionProfile.h
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
EngineTypes.h
Interface.h
ObjectMacros.h
GENERATED_BODY
#define GENERATED_BODY(...)
Definition
ObjectMacros.h:765
UFUNCTION
#define UFUNCTION(...)
Definition
ObjectMacros.h:745
UCLASS
#define UCLASS(...)
Definition
ObjectMacros.h:776
Object.h
EPhysicsStateAction::AddForce
@ AddForce
ESerializePropertyType::Handle
@ Handle
ScriptMacros.h
SingleParticlePhysicsProxy.h
SubclassOf.h
EUnitType::Force
@ Force
UnrealType.h
UBlueprintFunctionLibrary
Definition
BlueprintFunctionLibrary.h:16
UPhysicsThreadLibrary
Definition
PhysicsThreadLibrary.h:21
FBodyInstanceAsyncPhysicsTickHandle
Definition
BodyInstance.h:307
UE::Math::TVector< double >
Engine
Source
Runtime
Engine
Public
Physics
Experimental
PhysicsThreadLibrary.h
Generated by
1.9.8