# Capsule Collision makes Physics Actors fly away

**URL:** <https://forums.unrealengine.com/t/capsule-collision-makes-physics-actors-fly-away/399048>\
**Category:** World Creation\
**Tags:** capsule-component, setactorlocation, physics-body, unreal-engine, Physics, Collision, question\
**Created:** [June 21, 2017, 9:43am UTC](https://forums.unrealengine.com/t/capsule-collision-makes-physics-actors-fly-away/399048 "2017-06-21T09:43:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![9robin3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@9robin3](https://forums.unrealengine.com/u/9robin3)\
**Post date:** [June 21, 2017, 9:43am UTC](https://forums.unrealengine.com/t/capsule-collision-makes-physics-actors-fly-away/399048/1 "2017-06-21T09:43:51Z")

</div>

Whenever I use SetActorLocation for my Player blueprint (that has a capsule collider) my physics actors starts to fly off as if a collision happened with the players capsule collider. This happens to physics actors that are very far away that doesnt collide at all with my player actor.

I use the SetActorLocation to simulate a respawn mechanic. This is done in the level blueprint with some actor references. In the level blueprint I can see the warnings “variable not in scope” on some of the referenced object’s variables. Is this what causes this issue?

I have video to show off my problem:

I’ll try to ask for help one more time, trying to go more intro detail. Im using UE 4.15.

Whenever I use SetActorLocation for my Player blueprint (that has a capsule collider) my physics actors starts to fly off as if a collision happened with the players capsule collider. This happens to physics actors that are very far away that doesnt collide at all with my player actor.

I use the SetActorLocation to simulate a respawn mechanic. This is done in the level blueprint with some actor references. In the level blueprint I can see the warnings “variable not in scope” on some of the referenced object’s variables. Is this what causes this issue?

I have video to show off my problem:

[https://vid.me/6WN5](https://vid.me/6WN5)

Please help! This worked in UE 4.11 and I didnt change anything!

Thanks

Please help! This worked in UE 4.11 and I didnt change anything!

Thanks

---

<div class="post-metadata">

**Author:** ![9robin3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@9robin3](https://forums.unrealengine.com/u/9robin3)\
**Post date:** [June 22, 2017, 8:18am UTC](https://forums.unrealengine.com/t/capsule-collision-makes-physics-actors-fly-away/399048/2 "2017-06-22T08:18:59Z")

</div>

I solved it! I unchecked the “push force scaled to mass” in the CharacterMovement component of my player blueprint!

---

<div class="post-metadata">

**Author:** ![Motom1994](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Motom1994](https://forums.unrealengine.com/u/Motom1994)\
**Post date:** [January 19, 2018, 7:36am UTC](https://forums.unrealengine.com/t/capsule-collision-makes-physics-actors-fly-away/399048/3 "2018-01-19T07:36:09Z")

</div>

wow thanks ! i have the same confulse.

---

<div class="post-metadata">

**Author:** ![9robin3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@9robin3](https://forums.unrealengine.com/u/9robin3)\
**Post date:** [February 18, 2018, 8:33am UTC](https://forums.unrealengine.com/t/capsule-collision-makes-physics-actors-fly-away/399048/4 "2018-02-18T08:33:39Z")

</div>

Still having this issue in 4.18, even when I uncheck “push force scaled to mass”

Any help please!

---

<div class="post-metadata">

**Author:** ![NonPolynomialTim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NonPolynomialTim](https://forums.unrealengine.com/u/NonPolynomialTim)\
**Post date:** [May 8, 2019, 2:48am UTC](https://forums.unrealengine.com/t/capsule-collision-makes-physics-actors-fly-away/399048/7 "2019-05-08T02:48:05Z")

</div>

Same in 4.22, did you every solve this?

---

<div class="post-metadata">

**Author:** ![kklimitkk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kklimitkk](https://forums.unrealengine.com/u/kklimitkk)\
**Post date:** [July 5, 2019, 9:20am UTC](https://forums.unrealengine.com/t/capsule-collision-makes-physics-actors-fly-away/399048/8 "2019-07-05T09:20:58Z")

</div>

Generally, ACharacter’s RootComponet is CapsuleComponent.

Looking at UCharacterMovementComponent,  
You can see the code that processes the Block component on the 4586 Line.

```
if ((Hit.Time > 0.f) && (Hit.Normal.Z > KINDA_SMALL_NUMBER) && IsWalkable(Hit))
		{
			// Another walkable ramp.
			const float InitialPercentRemaining = 1.f - PercentTimeApplied;
			RampVector = ComputeGroundMovementDelta(Delta * InitialPercentRemaining, Hit, false);
			LastMoveTimeSlice = InitialPercentRemaining * LastMoveTimeSlice;
			SafeMoveUpdatedComponent(RampVector, UpdatedComponent->GetComponentQuat(), true, Hit);

			const float SecondHitPercent = Hit.Time * InitialPercentRemaining;
			PercentTimeApplied = FMath::Clamp(PercentTimeApplied + SecondHitPercent, 0.f, 1.f);
		}

```

Since the Hit component is a CapsuleComponent, it is judged to be a terrain, and the slope calculation is executed.  
(4498 Line ComputeGroundMovementDelta)

So the Delta is changed,  
Inside the PrimitiveComponent’s MoveComponentImpl(), set a new location for the character.

Then, the Actor that has changed the z value is applied with a NormaVector in PhysFalling(), and it is flying abnormally. (This section should be checked a little more)

If you happen to be a non-Phsycis Character,  
It’s may be a problem with the collisionion blocking configuration.  
(In case of Character and Character Hit)

This can be solved by creating a CustomCharacterMovement ( c++)

In your CustomCharacterMovment  
This can be overcome by overriding IsWalkable ().

```
bool UCustomMovementComponent::IsWalkable(const FHitResult& Hit) const
{
	if (Hit.GetActor() && Hit.GetActor()->IsA(ACharacter::StaticClass()))
	{
		return false;
	}

	return Super::IsWalkable(Hit);
}

```

I hope this helps you.

---

<div class="post-metadata">

**Author:** ![kklimitkk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kklimitkk](https://forums.unrealengine.com/u/kklimitkk)\
**Post date:** [July 5, 2019, 9:24am UTC](https://forums.unrealengine.com/t/capsule-collision-makes-physics-actors-fly-away/399048/9 "2019-07-05T09:24:33Z")

</div>

This can be solved by creating a CustomCharacterMovement ( c++)

In your CustomCharacterMovment override IsWalkable().

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_21c244b81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_21c244b81](https://forums.unrealengine.com/u/anonymous_user_21c244b81)\
**Post date:** [July 5, 2019, 2:08pm UTC](https://forums.unrealengine.com/t/capsule-collision-makes-physics-actors-fly-away/399048/10 "2019-07-05T14:08:47Z")

</div>

Basically you have a mesh inside of your character collider, for me it was my custom avatar, find whatever the static mesh is and set it to No Collisions and you should have no more errors, I also unchecked push force scaled to mass off.

I had just figured this out on looking at this question, so i thought i’d post this for anyone else who stumbles across this.

---

<div class="post-metadata">

**Author:** ![gorgeousorc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gorgeousorc](https://forums.unrealengine.com/u/gorgeousorc)\
**Post date:** [November 7, 2021, 2:50pm UTC](https://forums.unrealengine.com/t/capsule-collision-makes-physics-actors-fly-away/399048/11 "2021-11-07T14:50:07Z")

</div>

I’m working on ship physics and have had this problem when you run into any part of the ship it sends it flying. I figured out on the Character Movement component of my ThirdPersonCharacter \> the Push Force Factor & Initial Push Force Factor should be very low. They were initially set to: (500 Initial Push Force Factor) & (750000 Push Force Factor)

---

<div class="post-metadata">

**Author:** ![JoeK00L1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoeK00L1](https://forums.unrealengine.com/u/JoeK00L1)\
**Post date:** [May 15, 2022, 9:08pm UTC](https://forums.unrealengine.com/t/capsule-collision-makes-physics-actors-fly-away/399048/12 "2022-05-15T21:08:35Z")

</div>

The solution I found was to disable collision in BP Sky Sphere (credit Serdar Urkemez at Leartes Studios for this one)
