19-11-2018, 04:40 PM
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
Help Setting the mass of a particle trough code...
|
19-11-2018, 04:40 PM
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
20-11-2018, 08:13 AM
(This post was last modified: 20-11-2018, 08:14 AM by josemendez.)
(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.
20-11-2018, 01:23 PM
|
« Next Oldest | Next Newest »
|