Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
Include |
#include "Components/PrimitiveComponent.h" |
Source |
/Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp |
virtual void WeldTo
(
class USceneComponent * InParent,
FName InSocketName
)
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.
Parameter |
Description |
---|---|
InParent |
the component to be physically attached to |
InSocketName |
optional socket to attach component to |