Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mesh stuck into wall
#1
Any thing to combat meshes getting stuck into walls?
Reply
#2
(08-04-2019, 05:47 AM)aphixe Wrote: Any thing to combat meshes getting stuck into walls?

mind you the meshes get stuck in walls and floors, sometimes when i run into them.

   
   
   
   
Reply
#3
(09-04-2019, 01:35 AM)aphixe Wrote: mind you the meshes get stuck in walls and floors, sometimes when i run into them.

MeshColliders are the only colliders not "solid", meaning if a particle ends up inside them during a given frame (which is possible even with the default CCD, due to positional correction) it will get stuck inside of it. This issue is called tunneling and happens in all game engines, given small and/or fast enough objects (particles, in the case of Obi), as it's a fundamental consequence of how time is represented in computers (in a discrete way).

You could use distance fields instead, which are solid, and way more performant than MeshColliders:
http://obi.virtualmethodstudio.com/tutor...ields.html

You can also add a ObiParticleRenderer to your soft body, to visually debug what's happening (particles too small, gaps between particles, etc) and fix it:
http://obi.virtualmethodstudio.com/tutor...ering.html
Reply