"...has to have 'Physics Enabled' if you'd like to GetMass" not true!

VictorBurgos
Tue, 31 Oct 2017 02:19:26 +0000
World Creation

Well, I’m not even sure what the bug is really. It’s either the warning or it’s that we’re not supposed to be getting GetMass from an unenabled physics object. Even without enabling physics on a static mesh object, you can GetMass just fine, even edited ones.

Steps to reproduce:

1. New blank project

2. Create an Actor BP

3. Add and make a Static Mesh Component the root

4. Add a static mesh to the SMC

5. Go to the Event Graph

6. On Begin play, GetMass

7. Use a print string to get that value

8. (Notice I did not enable physics)

9. Value of GetMass is displayed and the warning occurs

10. Go back to the bp

11. Enable physics

12. Warning goes away

Edit values if you want. Same results with or without enabling physics.

To be honest, I don’t see a reason why we couldn’t get the mass from any object, especially if the mass is in outer space… But that’s another dilemma.

5 posts - 4 participants