UGeometryCollectionComponent::GetBodyInstance

Returns BodyInstance of the component.

Windows
MacOS
Linux

Override Hierarchy

UPrimitiveComponent::GetBodyInstance()

UGeometryCollectionComponent::GetBodyInstance()

References

Module

GeometryCollectionEngine

Header

/Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionComponent.h

Include

#include "GeometryCollection/GeometryCollectionComponent.h"

Source

/Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Private/GeometryCollection/GeometryCollectionComponent.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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback