# Rotating a non-physics actor and blocking rotation in the case that it results in a collision

**URL:** <https://forums.unrealengine.com/t/rotating-a-non-physics-actor-and-blocking-rotation-in-the-case-that-it-results-in-a-collision/488954>\
**Category:** World Creation\
**Tags:** sweep, unreal-engine, Physics, Collision, pawn, question\
**Created:** [September 18, 2021, 7:50pm UTC](https://forums.unrealengine.com/t/rotating-a-non-physics-actor-and-blocking-rotation-in-the-case-that-it-results-in-a-collision/488954 "2021-09-18T19:50:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![galact1c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@galact1c](https://forums.unrealengine.com/u/galact1c)\
**Post date:** [September 18, 2021, 7:50pm UTC](https://forums.unrealengine.com/t/rotating-a-non-physics-actor-and-blocking-rotation-in-the-case-that-it-results-in-a-collision/488954/1 "2021-09-18T19:50:45Z")

</div>

**TLDR: How do I rotate a primitive component with sweeping? The engine appears to not support it and I do not know how to approach the problem. Is physics really needed to rotate a box and have it detect collision?**

* * *

I am working on a custom movement component for my networked game. This means that this movement component needs to support rewind and replay, and cannot use physics as it would be an overcomplication. This movement component is designed for a pawn which uses a box collider.

- I am looking to find the best approach to rotate the box (primitive component) in my movement component, while also handling collisions that may occur.

- `UMovementComponent::SafeMoveUpdatedComponent` and `USceneComponent::SetWorldRotation` accept a rotation and offer a sweep parameter, however:

Ideally, for this movement component, rotation should be handled first, and applied if it can be pushed away from the surface it collides with. Otherwise, the rotation should not be applied. Only after rotation has been applied and collisions have been resolved, should linear movement be applied.

I’m unsure how to tackle this. Any suggestions are welcome!
