Description: Calculating the mass of an assembly differs when parented to nil versus workspace. May have to do with constraints.
Frequency: Always
repro.rbxl (31.8 KB)
This confused me for a few solid hours before I figured out what was going on.
Description: Calculating the mass of an assembly differs when parented to nil versus workspace. May have to do with constraints.
Frequency: Always
repro.rbxl (31.8 KB)
This confused me for a few solid hours before I figured out what was going on.
Hey so I found a bug. It seems like the problem isn’t that Truck is in the Workspace. The problem seems to be when the Truck is being only held in a script’s memory and not associated with your current “game” object. Truck:Clone() essentially creates a Truck in the nether and some physical properties don’t initialize properly.
You’ll notice if you calculate mass on the Truck before cloning you will get the correct value.
Now I’ll have to figure out how to properly get the physics to initialize when cloning.