# Geometry Collection "Set Enable Gravity" does not work

**URL:** <https://forums.unrealengine.com/t/geometry-collection-set-enable-gravity-does-not-work/1660587>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, bug-report, editor, Blueprint, question\
**Created:** [February 2, 2024, 4:09pm UTC](https://forums.unrealengine.com/t/geometry-collection-set-enable-gravity-does-not-work/1660587 "2024-02-02T16:09:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goofex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Goofex](https://forums.unrealengine.com/u/Goofex)\
**Post date:** [February 2, 2024, 4:09pm UTC](https://forums.unrealengine.com/t/geometry-collection-set-enable-gravity-does-not-work/1660587/1 "2024-02-02T16:09:29Z")

</div>

When trying to set/change the gravity of Geometry Collection object in blueprint, it does not work. However, when the gravity is set manually from the “details” panel of the Geometry Collection, the “Enable Gravity” does work, it does change whether gravity is enabled or not.

Is this an engine related limitation that Geometry Collection gravity can not be changed during runtime, or is this a bug?

![Screenshot_186](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/1/b4135dda57bd77caa50d46183f035c73ae082b08.png)

 ![Screenshot_187](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/7/f2742d458238f5fa2d9f6b3b474ef87f81e6380b.png)

---

<div class="post-metadata">

**Author:** ![Teddy\_Police](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Teddy\_Police](https://forums.unrealengine.com/u/Teddy_Police)\
**Post date:** [April 14, 2024, 9:58am UTC](https://forums.unrealengine.com/t/geometry-collection-set-enable-gravity-does-not-work/1660587/2 "2024-04-14T09:58:19Z")

</div>

I can see the exact same behavior in UE 5.3.2. Seems like a bug. Setting gravity at runtime basically does nothing, everything obeys the settings on the actor component.

Having dug through the sources as someone who can barely read C++, it looks like GeometryCollection components handle physics settings very differently than other components. May be intentional, may be broken, something is definitely afoot here.

---

<div class="post-metadata">

**Author:** ![Katianie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Katianie](https://forums.unrealengine.com/u/Katianie)\
**Post date:** [April 25, 2024, 5:24pm UTC](https://forums.unrealengine.com/t/geometry-collection-set-enable-gravity-does-not-work/1660587/3 "2024-04-25T17:24:32Z")

</div>

I’m running into the same issue on 5.3. I think they are actively working on the GeometryCollection stuff since things have changed from 5.1 already.

---

<div class="post-metadata">

**Author:** ![Pilvepeetrus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pilvepeetrus](https://forums.unrealengine.com/u/Pilvepeetrus)\
**Post date:** [September 21, 2024, 1:08pm UTC](https://forums.unrealengine.com/t/geometry-collection-set-enable-gravity-does-not-work/1660587/4 "2024-09-21T13:08:12Z")

</div>

Its 5.4 and still not working.

---

<div class="post-metadata">

**Author:** ![GeneralSnoopicus1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GeneralSnoopicus1](https://forums.unrealengine.com/u/GeneralSnoopicus1)\
**Post date:** [November 8, 2024, 10:35pm UTC](https://forums.unrealengine.com/t/geometry-collection-set-enable-gravity-does-not-work/1660587/5 "2024-11-08T22:35:08Z")

</div>

For some reason this doesn’t work (nor does Set Simulate Physics) when you call it on the GeometryCollection. If you cast the GeometryCollection as a PrimitiveComponent and call SetSimulatePhysics on that, it will work.

---

<div class="post-metadata">

**Author:** ![elguapador](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@elguapador](https://forums.unrealengine.com/u/elguapador)\
**Post date:** [November 28, 2024, 2:44pm UTC](https://forums.unrealengine.com/t/geometry-collection-set-enable-gravity-does-not-work/1660587/6 "2024-11-28T14:44:18Z")

</div>

As of late 2024, the devs recognise that this is an engine limitation as GetBodyInstance() always returns nullptr. See: [Fractured geometry collection can't be grabbed up by physics handle - #2 by CedUE](https://forums.unrealengine.com/t/fractured-geometry-collection-cant-be-grabbed-up-by-physics-handle/721869/2)

---

<div class="post-metadata">

**Author:** ![CedUE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cedue/32/924243_2.png) [@CedUE](https://forums.unrealengine.com/u/CedUE)\
**Post date:** [December 11, 2024, 3:29am UTC](https://forums.unrealengine.com/t/geometry-collection-set-enable-gravity-does-not-work/1660587/7 "2024-12-11T03:29:40Z")

</div>

SetEnableGravity can be called at runtime now on Geometry Collections since Release 5.5

(Github link of the change : [https://github.com/EpicGames/UnrealEngine/commit/1be79a061bbbf4bbfc3f01232d4a2ccacd046771#diff-c8651ef9687cea5620b7e61bdbe845af2e3309f646da01e9aa687b38b6de7b6fR661](https://github.com/EpicGames/UnrealEngine/commit/1be79a061bbbf4bbfc3f01232d4a2ccacd046771#diff-c8651ef9687cea5620b7e61bdbe845af2e3309f646da01e9aa687b38b6de7b6fR661) )
