UPrimitiveComponent::WeldTo

Welds this component to another scene component, optionally at a named socket.

Windows
MacOS
Linux

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

Syntax

virtual void WeldTo
(
    class USceneComponent * InParent,
    FName InSocketName
)

Remarks

Welds this component to another scene component, optionally at a named socket. Component is automatically attached if not already Welding allows the child physics object to become physically connected to its parent. This is useful for creating compound rigid bodies with correct mass distribution.

Parameters

Parameter

Description

InParent

the component to be physically attached to

InSocketName

optional socket to attach component to

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