USkeletalMeshComponent::GetBodyInstance

Returns BodyInstance of the component.

Windows
MacOS
Linux

Override Hierarchy

UPrimitiveComponent::GetBodyInstance()

USkeletalMeshComponent::GetBodyInstance()

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

virtual FBodyInstance * GetBodyInstance
(
    FName BoneName,
    bool bGetWelded
) const

Remarks

Returns BodyInstance of the component.

Returns

Returns the BodyInstance based on various states (does component have multiple bodies? Is the body welded to another body?)

Parameters

Parameter

Description

BoneName

Used to get body associated with specific bone. NAME_None automatically gets the root most body

bGetWelded

If the component has been welded to another component and bGetWelded is true we return the single welded BodyInstance that is used in the simulation

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