# Scale of Physics Object Changed but Get Mass not Correct

**URL:** <https://forums.unrealengine.com/t/scale-of-physics-object-changed-but-get-mass-not-correct/479040>\
**Category:** World Creation\
**Tags:** Physics-Mass, unreal-engine, question\
**Created:** [February 19, 2021, 7:59pm UTC](https://forums.unrealengine.com/t/scale-of-physics-object-changed-but-get-mass-not-correct/479040 "2021-02-19T19:59:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 19, 2021, 9:59am UTC](https://forums.unrealengine.com/t/scale-of-physics-object-changed-but-get-mass-not-correct/479040/1 "2021-02-19T09:59:55Z")

</div>

You’re printing only 1 element of that array. You sure that’s correct? If you’re thinking you’re adding all of them, you’re not.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 19, 2021, 10:02am UTC](https://forums.unrealengine.com/t/scale-of-physics-object-changed-but-get-mass-not-correct/479040/2 "2021-02-19T10:02:36Z")

</div>

If you’re trying to count mass of all components, try it like so:

 ![330248-screenshot-4.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/b/f9badf0fdb05e9b4feb06c966259dbcc7910671a.jpeg)

---

<div class="post-metadata">

**Author:** ![winglessraven](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@winglessraven](https://forums.unrealengine.com/u/winglessraven)\
**Post date:** [February 19, 2021, 10:07am UTC](https://forums.unrealengine.com/t/scale-of-physics-object-changed-but-get-mass-not-correct/479040/3 "2021-02-19T10:07:24Z")

</div>

I hadn’t hooked it up yet, only 1 component currently. Now hooked up and edited the screenshot but still only printing the mass of the item before the scale changes.

---

<div class="post-metadata">

**Author:** ![winglessraven](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@winglessraven](https://forums.unrealengine.com/u/winglessraven)\
**Post date:** [February 19, 2021, 10:42am UTC](https://forums.unrealengine.com/t/scale-of-physics-object-changed-but-get-mass-not-correct/479040/4 "2021-02-19T10:42:39Z")

</div>

I hadn’t fully hooked it up, was just testing and noticed the mass was wrong. Original post updated with a gif showing an example

---

<div class="post-metadata">

**Author:** ![winglessraven](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@winglessraven](https://forums.unrealengine.com/u/winglessraven)\
**Post date:** [February 19, 2021, 7:59pm UTC](https://forums.unrealengine.com/t/scale-of-physics-object-changed-but-get-mass-not-correct/479040/5 "2021-02-19T19:59:19Z")

</div>

I’m pretty new to UE4 so please excuse anything obvious I’m missing.

I have an object that changes scale via an input. I can see in the outliner that the MassInKg is being calculated accordingly, but when it enters a trigger that gets the mass it doesn’t show correctly.

Scale 1.0:

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

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/8/fb838480f1b3964a365f189ec14cd6f3b9db0fce.png)

Scale 0.7:

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/d/edd8bcc5e539e7f64014494db25cdd28870b8c23.png)

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/1/dc1ab28e26e1416ff3973c69cedfa051f10dd2e1.png)

My test to get the mass always shows the mass at 1.0 scale, BP:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/b/fcb1303bda5eca82d73c3132cf0d52cc03e3e439.png)

Get Mass Value during execution:

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/3/5d320c762b508ef034b9f7ad242d37ee920b31bb.png)

Object mass at the same point in time (via outliner \> details):

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/5/a953380053155c8d39fc7792bf0e52a9718bacdb.png)

Example gif showing mass changing on the object details with the debug print of GetMass of the same object when changing the scale up and down:

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/8/6e81e7ba8c88d6cf349d316cc9683f68413d2990.gif)

Am I missing something here? How can I get the correct ‘up to date’ mass of the items within the collision area?

Thanks.
