Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/USkeletalMeshComponent
Description
Enables or disables gravity to all bodies below the given bone. NAME_None indicates all bodies will be edited. In that case, consider using UPrimitiveComponent::EnableGravity.
| Name | SetEnableGravityOnAllBodiesBelow |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/SkeletalMeshComponent.h |
| Include Path | #include "Components/SkeletalMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/SkeletalMeshComponentPhysics.cpp |
UFUNCTION (BlueprintCallable, Category="Physics")
void SetEnableGravityOnAllBodiesBelow
(
bool bEnableGravity,
FName BoneName,
bool bIncludeSelf
)
Parameters
| Name | Remarks |
|---|---|
| bEnableGravity | Whether gravity should be enabled or disabled. |
| BoneName | The name of the top most bone. |
| bIncludeSelf | Whether the bone specified should be edited. |