USkeletalMeshComponent::SetEnableGravityOnAllBodiesBelow

Enables or disables gravity to all bodies below the given bone.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/SkeletalMeshComponent.h

Include

#include "Components/SkeletalMeshComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/SkeletalMeshComponentPhysics.cpp

Syntax

void SetEnableGravityOnAllBodiesBelow
(
    bool bEnableGravity,
    FName BoneName,
    bool bIncludeSelf
)

Remarks

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.

Parameters

Parameter

Description

bEnableGravity

Whether gravity should be enabled or disabled.

BoneName

The name of the top most bone.

bIncludeSelf

Whether the bone specified should be edited.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss