Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UPrimitiveComponent
Description
Enables/disables whether this component is affected by gravity. This applies only to components with bSimulatePhysics set to true.
Derived Overrides
| Name | SetEnableGravity |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include Path | #include "Components/PrimitiveComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp |
UFUNCTION (BlueprintCallable, Category="Physics")
virtual void SetEnableGravity
(
bool bGravityEnabled
)