Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Components > UPrimitiveComponent
- UPrimitiveComponent::SetEnableGravity()
- UDestructibleComponent::SetEnableGravity()
- USkeletalMeshComponent::SetEnableGravity()
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
Include | #include "Components/PrimitiveComponent.h" |
Source | /Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp |
virtual void SetEnableGravity
&40;
bool bGravityEnabled
&41;
Remarks
Enables/disables whether this component is affected by gravity. This applies only to components with bSimulatePhysics set to true.