Calculating Force Required To Lift Model With BodyForce or BodyThrust

I wanna calculate the force required to lift a model with a bodyforce or bodythrust, i know how to get a whole model’s mass.

1 Like

F = MG

Iterate over the model’s descendants and calculate their mass then add that to a total.

local Mass = 0

for _, Descendant in pairs(Model:GetDescendants()) do
    Mass = Mass + Descendant:GetMass()
end

local F = Mass * workspace.Gravity
1 Like

Don’t forget to make sure that each descendant that’s being iterated MUST be checked that it is a BasePart before moving on.

2 Likes

im not ‘forgetting’

that is narrowly relevant to their question.

Their model could contain instances that doesn’t have the mass property.

3 Likes