Help Setting the mass of a particle trough code... - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html) +--- Thread: Help Setting the mass of a particle trough code... (/thread-754.html) |
Setting the mass of a particle trough code... - imtehQ - 19-11-2018 Code: rope.invMasses[0] = 10; However this will make the rope segment be 0.11 mass. How is the mass beeing calculated here? where 1 = 1 mass but 10 is 0.11 RE: Setting the mass of a particle trough code... - josemendez - 20-11-2018 (19-11-2018, 04:40 PM)imtehQ Wrote: as the name (inverse mass) implies, this is 1/mass. It is a common optimization in engines to work with inverse mass instead of mass, as many equations involve dividing by the mass. RE: Setting the mass of a particle trough code... - imtehQ - 20-11-2018 (20-11-2018, 08:13 AM)josemendez Wrote: as the name (inverse mass) implies, this is 1/mass. So you do it before as to not calculate it later, smart. Thanks for the info. |