Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Doesn't work in Unity 2020.1.41f
#14
(14-09-2020, 03:59 PM)quakeulf Wrote: It says I cannot attach .FBX-files, but I loaded up the .FBX used for testing here:

http://quakeulf.suxos.org/3d/cahhh.fbx

Your car mesh is really small, only a centimeter or so in size. Comparison with a 1.80m tall character in Unity:

[Image: Y08ZefJ.png]

Assuming this is a toy car -think hotwheels/micromachine- and not a full-size car (in that case you'd need to adjust your modeling units or change the FBX import scale) you will have to adjust the default parameters of the blueprint to work at such a small scale. These are the ones that gave best results for me:

[Image: XZyCeVS.png]


Since the car is composed of many different meshes (body, windows, wheels, steering wheel, etc), best approach would be to use a single mesh to generate the softbody then skin everything to it. For this you can use the car body, or a mesh authored specifically to generate a softbody out of it.

After generating the blueprint, you will need to create a SkinnedMeshRenderer for all pieces in your car, add a ObiSoftbodySkinner to them, and then bind them to the softbody. Still, it is very possible that you will run into floating point precision issues at this scale. The distance between vertices in your mesh is really small, sometimes much less than a millimeter. Particle radius with the parameters above is only 2 mm, but if I tried to use smaller particles, some of them would be extremely close together and could cause precision issues in the simulation.

My advice would be to simulate at a higher scale, at least a few centimeters in size.

Edit: here's the results from the above. I only bound the car body, left the wheels/window panes etc unbound. Also reduced solver gravity to about -6 m/s2 to be able to see the car falling, as being so small it's quite difficult to focus the camera on it when it moves:

Reply


Messages In This Thread
Doesn't work in Unity 2020.1.41f - by quakeulf - 10-09-2020, 11:19 PM
RE: Doesn't work in Unity 2020.1.41f - by josemendez - 14-09-2020, 04:26 PM