Navigation
API > API/Runtime > API/Runtime/Engine
Used with objects that have physics to apply a force down the negative-X direction ie. point X in the direction you want the thrust in.
| Name | UPhysicsThrusterComponent |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/PhysicsThrusterComponent.h |
| Include Path | #include "PhysicsEngine/PhysicsThrusterComponent.h" |
Syntax
UCLASS (HideCategories=(Object, Mobility, LOD), ClassGroup=Physics, ShowCategories=Trigger,
MinimalAPI, Meta=(BlueprintSpawnableComponent))
class UPhysicsThrusterComponent : public USceneComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → UPhysicsThrusterComponent
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UPhysicsThrusterComponent
(
const FObjectInitializer& ObjectInitializer |
PhysicsEngine/PhysicsThrusterComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ThrustStrength | float | Strength of thrust force applied to the base object. | PhysicsEngine/PhysicsThrusterComponent.h |
|
Functions
Public
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnRegister() |
Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called. | PhysicsEngine/PhysicsThrusterComponent.h | |
virtual void TickComponent
(
float DeltaTime, |
Function called every frame on this ActorComponent. | PhysicsEngine/PhysicsThrusterComponent.h |