# How to disable "Get Mass" for non-phys objects?

**URL:** <https://forums.unrealengine.com/t/how-to-disable-get-mass-for-non-phys-objects/429395>\
**Category:** World Creation\
**Tags:** Physics-Mass, object-picker, unreal-engine, bug-report, UE4, Blueprint, question\
**Created:** [July 13, 2018, 7:31pm UTC](https://forums.unrealengine.com/t/how-to-disable-get-mass-for-non-phys-objects/429395 "2018-07-13T19:31:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Llama\_Productions](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Llama\_Productions](https://forums.unrealengine.com/u/Llama_Productions)\
**Post date:** [July 13, 2018, 7:31pm UTC](https://forums.unrealengine.com/t/how-to-disable-get-mass-for-non-phys-objects/429395/1 "2018-07-13T19:31:02Z")

</div>

I have a basic line trace pickup script on a tick, in which it requires “get mass” to calculate the mass of an object to see if its eligible to pickup, issue is “get mass” does not commute with non-phys objects, so when the crosshair is on a non-phys object this bug report is spammed: Floor\_16.StaticMeshComponent0 1M\_Cube has to have ‘Simulate Physics’ enabled if you’d like to GetMass. Is there a way to prevent non-physics objects from getting their mass?

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/c/10c3af591be881a6e2c88ab60b84743905029113.png)

here is the print, is there a method of branching “Is simulating physics” to have “Get Mass” disabled if they arent?

BONUS: Ideally I’d want pickup dependent on whether an object is classed as “pickupable” however i tried this method replacing Get Mass with a blueprint class i assigned on the object, but alas it does not compute, if this could be fixed as well i’d be most greatful. Thanks.

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [July 13, 2018, 7:34pm UTC](https://forums.unrealengine.com/t/how-to-disable-get-mass-for-non-phys-objects/429395/2 "2018-07-13T19:34:51Z")

</div>

Can you get the actor’s Simulates Physics bool value? As opposed to Is Simulating Physics

---

<div class="post-metadata">

**Author:** ![Llama\_Productions](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Llama\_Productions](https://forums.unrealengine.com/u/Llama_Productions)\
**Post date:** [July 13, 2018, 7:41pm UTC](https://forums.unrealengine.com/t/how-to-disable-get-mass-for-non-phys-objects/429395/3 "2018-07-13T19:41:52Z")

</div>

Ignore the first question, I managed to make a function out of it which did the job, no error. However, my BONUS question has not been sorted so i’d still appreciate a response on that

---

<div class="post-metadata">

**Author:** ![Llama\_Productions](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Llama\_Productions](https://forums.unrealengine.com/u/Llama_Productions)\
**Post date:** [July 13, 2018, 7:42pm UTC](https://forums.unrealengine.com/t/how-to-disable-get-mass-for-non-phys-objects/429395/4 "2018-07-13T19:42:40Z")

</div>

nevermind that, 1st issue solved, thanks anyways

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [July 13, 2018, 7:55pm UTC](https://forums.unrealengine.com/t/how-to-disable-get-mass-for-non-phys-objects/429395/5 "2018-07-13T19:55:48Z")

</div>

for the bonus question, the GetClass node doesnt work for you?
