Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UPrimitiveComponent > API/Runtime/Engine/Components/UPrimitiveComponent/SetAllPhysicsRotation
- UPrimitiveComponent::SetAllPhysicsRotation()
- USkeletalMeshComponent::SetAllPhysicsRotation()
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 |
virtual void SetAllPhysicsRotation
(
const FQuat & NewRot
)
Remarks
Set the rotation of all bodies in this component. If a SkeletalMeshComponent, the root body will be changed to the desired orientation, and the same delta is applied to all other bodies.
Parameters
| Name | Description |
|---|---|
| NewRot | New orienatation for the body |