Navigation
API > API/Runtime > API/Runtime/Engine
Attach one of these on an object using physics simulation and it will apply a force down the negative-X direction ie. point X in the direction you want the thrust in.
| Name | APhysicsThruster |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/PhysicsThruster.h |
| Include Path | #include "PhysicsEngine/PhysicsThruster.h" |
Syntax
UCLASS (HideCategories=(Input, Collision, Replication),
ShowCategories=("Input|MouseInput", "Input|TouchInput"), ComponentWrapperClass)
class APhysicsThruster : public ARigidBodyBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → AActor → ARigidBodyBase → APhysicsThruster
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
APhysicsThruster
(
const FObjectInitializer& ObjectInitializer |
PhysicsEngine/PhysicsThruster.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ArrowComponent | TObjectPtr< class UArrowComponent > | PhysicsEngine/PhysicsThruster.h | ||
| ThrusterComponent | TObjectPtr< class UPhysicsThrusterComponent > | Thruster component | PhysicsEngine/PhysicsThruster.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UArrowComponent * GetArrowComponent() |
Returns ArrowComponent subobject | PhysicsEngine/PhysicsThruster.h | |
UPhysicsThrusterComponent * GetThrusterComponent() |
Returns ThrusterComponent subobject | PhysicsEngine/PhysicsThruster.h |