15-07-2021, 08:29 AM
(This post was last modified: 15-07-2021, 08:45 AM by josemendez.)
(15-07-2021, 01:13 AM)moyashiking Wrote: I apologize for the inconvenience many times.
It turns out that density is an important factor.
As I wrote before, I don't know how to compare densities.
What is the density of Sphere and Cube (2)?
Density = mass/volume. mass is expressed in Kilograms, volume in cubic meters (m3). So density is expressed in Kg/m3.
To calculate the density of a rigidbody, you divide its mass by its volume. For 3D colliders, unity does not include any means to calculate its volume (though you can directly specify a density using Rigidbody.SetDensity). Fortunately most collider shapes (cubes, spheres, capsules) have very simple analytical formulas for volumes:
https://www.varsitytutors.com/hotmath/ho...rea-volume