# Why does a capsule rigid body stays floating when bodies below it are removed? It should fall with gravity.

**URL:** <https://forums.unrealengine.com/t/why-does-a-capsule-rigid-body-stays-floating-when-bodies-below-it-are-removed-it-should-fall-with-gravity/829629>\
**Category:** Blueprint\
**Tags:** gravity, simulate-physics, unreal-engine, Physics, question\
**Created:** [March 28, 2023, 9:29am UTC](https://forums.unrealengine.com/t/why-does-a-capsule-rigid-body-stays-floating-when-bodies-below-it-are-removed-it-should-fall-with-gravity/829629 "2023-03-28T09:29:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlfredBaudisch](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alfredbaudisch/32/556329_2.png) [@AlfredBaudisch](https://forums.unrealengine.com/u/AlfredBaudisch)\
**Post date:** [March 28, 2023, 9:29am UTC](https://forums.unrealengine.com/t/why-does-a-capsule-rigid-body-stays-floating-when-bodies-below-it-are-removed-it-should-fall-with-gravity/829629/1 "2023-03-28T09:29:50Z")

</div>

# Setup (UE 5.1)

Actor with a StaticMesh with the following Physics properties:

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/a/85af6fcd9165393924680f22572db56f63250bf4.png)

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/0/f80925503b96b24c19ce9b90ffd3569a2b4fa059.png)

It has an imported capsule collider:

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/d/afdbb251de1c6f0e20c620f25eed10e00b8b5267.jpeg)

There’s no code driving the physics of the Actor.

# Problem

At runtime, when removing bodies that are below this actor, instead of the actor falling with gravity it stays in place.

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/1/261b3ad64cb10afd8662baf7bab32883b25d0e74.jpeg)

It only moves if the character controller steps on it or if another body is dropped on top of it.

Video showing removal of bottom bodies and the actor staying floating:

## Alternative Approach

If I remove the actors and WHILE CARRYING one of the removed actors I DO NOT MOVE, the actor that stays, keeps floating and is not affected by gravity (this is the problem described above):

But if I MOVE while HOLDING AN ACTOR that I removed, the actor that stays react right away and falls down:

But why is that, since inspecting the collision shapes show that they are always moved out?

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/1/37119fb5586bb399aacbcf5c7e510ae7b625f43e.jpeg)

# Question

1. How to make it correctly react to gravity when its support is removed?

Reducing Inertia Tensor Scale did not solve it.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [March 28, 2023, 9:48am UTC](https://forums.unrealengine.com/t/why-does-a-capsule-rigid-body-stays-floating-when-bodies-below-it-are-removed-it-should-fall-with-gravity/829629/2 "2023-03-28T09:48:10Z")

</div>

That has happened to me… I think the capsule does not emulate physics when the character is detached from it. (rag doll for example)

In fact there is a node that does that. (Emulate physics)

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [March 28, 2023, 9:51am UTC](https://forums.unrealengine.com/t/why-does-a-capsule-rigid-body-stays-floating-when-bodies-below-it-are-removed-it-should-fall-with-gravity/829629/3 "2023-03-28T09:51:41Z")

</div>

Yes, I think your object is not emulating physics… other sticks can go through it… (In the editor you can also make the capsule emulate physics… you don’t need the node) (You have to configure the collions too… if you have the collions misconfigured the physical ones may not work)

---

<div class="post-metadata">

**Author:** ![AlfredBaudisch](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alfredbaudisch/32/556329_2.png) [@AlfredBaudisch](https://forums.unrealengine.com/u/AlfredBaudisch)\
**Post date:** [March 28, 2023, 10:11am UTC](https://forums.unrealengine.com/t/why-does-a-capsule-rigid-body-stays-floating-when-bodies-below-it-are-removed-it-should-fall-with-gravity/829629/4 "2023-03-28T10:11:59Z")

</div>

> [@Ivan3z](#):
>
> Yes, I think your object is not emulating physics… other sticks can go through it… (In the editor you can also make the capsule emulate physics… you don’t need the node) (You have to configure the collions too… if you have the collions misconfigured the physical ones may not work)

From you can see from the physics settings in the image attached to the original post, they all have Simulate Physics On and Gravity is Enabled for all of them. They are also set to `PhysicsActor` in the Collision settings.

![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/1/8a15d475258f431b2b366fc8ee8e37a0decf3a42.png)

In the beginning of the game, before I take them out with the character they are even simulated:

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [March 28, 2023, 10:24am UTC](https://forums.unrealengine.com/t/why-does-a-capsule-rigid-body-stays-floating-when-bodies-below-it-are-removed-it-should-fall-with-gravity/829629/5 "2023-03-28T10:24:37Z")

</div>

Is it a multiplayer game? If so, maybe you should replicate the object… non-replicated objects in a multiplayer game do very strange things… like that for example

---

<div class="post-metadata">

**Author:** ![AlfredBaudisch](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alfredbaudisch/32/556329_2.png) [@AlfredBaudisch](https://forums.unrealengine.com/u/AlfredBaudisch)\
**Post date:** [March 28, 2023, 11:46am UTC](https://forums.unrealengine.com/t/why-does-a-capsule-rigid-body-stays-floating-when-bodies-below-it-are-removed-it-should-fall-with-gravity/829629/6 "2023-03-28T11:46:12Z")

</div>

No, single player, simple mechanic of picking up and dropping rigid bodies.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [March 28, 2023, 12:35pm UTC](https://forums.unrealengine.com/t/why-does-a-capsule-rigid-body-stays-floating-when-bodies-below-it-are-removed-it-should-fall-with-gravity/829629/7 "2023-03-28T12:35:41Z")

</div>

I would copy another one of those sticks that behaves correctly and delete the one that behaves badly. It will be the fastest. You probably have something in the configuration different from the others. Might even have an invisible collision element… Easy path, Copy and Paste… 🙂

Best regards

---

<div class="post-metadata">

**Author:** ![AlfredBaudisch](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alfredbaudisch/32/556329_2.png) [@AlfredBaudisch](https://forums.unrealengine.com/u/AlfredBaudisch)\
**Post date:** [March 28, 2023, 12:44pm UTC](https://forums.unrealengine.com/t/why-does-a-capsule-rigid-body-stays-floating-when-bodies-below-it-are-removed-it-should-fall-with-gravity/829629/8 "2023-03-28T12:44:23Z")

</div>

Thanks, but unfortunately they are all the same.

I almost solved by creating a Physics Material and tweaking the Sleep Linear Velocity Threshold, Sleep Angular Velocity Threshold and Sleep Counter Threshold parameters.

They still go to sleep, but correctly wake up when they lose their supporting bodies.

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/3/76376881d2bdfb24cf9acf7404376f4cd7945b84.png)

---

<div class="post-metadata">

**Author:** ![AlfredBaudisch](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alfredbaudisch/32/556329_2.png) [@AlfredBaudisch](https://forums.unrealengine.com/u/AlfredBaudisch)\
**Post date:** [March 28, 2023, 1:03pm UTC](https://forums.unrealengine.com/t/why-does-a-capsule-rigid-body-stays-floating-when-bodies-below-it-are-removed-it-should-fall-with-gravity/829629/9 "2023-03-28T13:03:13Z")

</div>

Well, too soon, objects are still randomly not waking up:

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/3/68328691261f56075f10e173dd401233959a6b49.jpeg)

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [March 28, 2023, 5:27pm UTC](https://forums.unrealengine.com/t/why-does-a-capsule-rigid-body-stays-floating-when-bodies-below-it-are-removed-it-should-fall-with-gravity/829629/10 "2023-03-28T17:27:10Z")

</div>

It’s very weird.

Check the components of the object… maybe it has a collision box that you’re not seeing because it’s invisible.

When you export an FBX it is possible that colliders are automatically generated as well.

another possibility is that it’s not the stick… maybe it’s the ground (or something above the ground)

another possibility is that the stick is surrounded by a mesh… that mesh would have the normals inverted, so it would be invisible…

there are really many possibilities…

---

<div class="post-metadata">

**Author:** ![AlfredBaudisch](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alfredbaudisch/32/556329_2.png) [@AlfredBaudisch](https://forums.unrealengine.com/u/AlfredBaudisch)\
**Post date:** [March 29, 2023, 8:32am UTC](https://forums.unrealengine.com/t/why-does-a-capsule-rigid-body-stays-floating-when-bodies-below-it-are-removed-it-should-fall-with-gravity/829629/11 "2023-03-29T08:32:11Z")

</div>

Thanks, I tried all of these, but it’s still related to the physics actor going to sleep and not waking up unless I move.

---

<div class="post-metadata">

**Author:** ![AlfredBaudisch](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alfredbaudisch/32/556329_2.png) [@AlfredBaudisch](https://forums.unrealengine.com/u/AlfredBaudisch)\
**Post date:** [March 29, 2023, 8:34am UTC](https://forums.unrealengine.com/t/why-does-a-capsule-rigid-body-stays-floating-when-bodies-below-it-are-removed-it-should-fall-with-gravity/829629/12 "2023-03-29T08:34:04Z")

</div>

## Solution

Solved by forcibly waking up objects near the picked up object. Seems very hackish, as I’d expect rigid bodies to wake up when they lose their supporting ground, but if it works, it works!

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/9/449c4e007d105d22ecc59fc5ca430fcc64e9d8f1.png)
