Can’t get a real object mass

Hi everyone. How to get component mass without summing child objects?
For example: get mass of “Cube” will be 30 kg because this has two child objects with 10kg mass. But i need get infromation about only “Cube”, what weights 10 kg.



1 Like

This topic has been moved from International to Programming & Scripting: Blueprint.

When posting, please review the categories to ensure your topic is posted in the most relevant space. Hopefully, this new category will help you to get an answer.

In the meantime, good luck and happy developing! :slight_smile:

If you would prefer a different category, please feel free to @ me!

–Panda

2 Likes

Hey there @unrealengine432! So it looks like due to the objects being welded, you cannot get their mass independent of each other.

You can get the individual mass by not welding the objects. However, to utilize it’s parent’s simulated physics and rigid body it would need to be welded otherwise it would throw a (non-fatal) error when something touches it. Depending on your use case, you could save the parts individual masses to a variable and then reference that even while they are welded.

3 Likes