Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UPrimitiveComponent
Description
Set the position of all bodies in this component. If a SkeletalMeshComponent, the root body will be placed at the desired position, and the same delta is applied to all other bodies.
Derived Overrides
| Name | SetAllPhysicsPosition |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include Path | #include "Components/PrimitiveComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp |
virtual void SetAllPhysicsPosition
(
FVector NewPos
)
Parameters
| Name | Remarks |
|---|---|
| NewPos | New position for the body |