![]() |
What is inverse mass? How should I determine it? - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html) +--- Thread: What is inverse mass? How should I determine it? (/thread-2130.html) |
What is inverse mass? How should I determine it? - Snail921 - 31-03-2020 Hi. I create obi actor objects by script in run time without setting actor.solver.invMasses[index] for each particle. It seems the obi handle everything and give some proper parameters to my actors but I do not understand what inverse mass is and why we use it. I googled but could not find proper document that I could understand. For now I have no issue with that but I would like to have better understandings for the future. In a ObiActorCenterOfMass.cs, I found a line below:
For example, if I would like to make an actor with four particles with a total mass of 150 it should be like this.
Someone please let me know if I am correct. RE: What is inverse mass? How should I determine it? - josemendez - 31-03-2020 Inverse mass is literally 1/mass. Why not use mass instead then? for two reasons:
Regarding your math: if you want to make an actor with 4 particles and a total mass of 150 kg, you'd simply do: Code: particleMass = 150/4; // total mass divided by the amount of particles, so we get the mass each particle needs to have So the invMass for each particle needs to be 1/(150/4) = 0.02666. You can check that this is correct by calculating the total mass of the 4 particles: Code: particleMass = 1/0.02666; The result is 150.037, so we know our original formula is spot on. (I truncated the inverse mass to five decimals, hence the .037 in the reconstructed total mass). I don't know where the 600 value comes from in your formula. Quote:In a ObiActorCenterOfMass.cs, I found a line below: This is wrong. Keep in mind that 1/a + 1/b + 1/c is not equivalent to 1/(a+b+c). It's easy to make this mistake. RE: What is inverse mass? How should I determine it? - Snail921 - 31-03-2020 Thank you so much for the reply and the lecture! My question has been answered very clearly and easily to understand! Where did the 600 come from? Hmm..., maybe from my bad attitude toward math studying in the elementary school. RE: What is inverse mass? How should I determine it? - josemendez - 31-03-2020 (31-03-2020, 11:51 AM)Snail921 Wrote: Thank you so much for the reply and the lecture! You're welcome! I loathed math for most of my teenage years, but it is actually awesome and extremely useful ![]() |