Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ball jumps on colliders edges
#8
Why use a mesh deformer at all? To me it looks like the whole track is basically a U-shape. If thats the case, use shape extrusion instead of mesh deformation. That way it will generate a single connected mesh instead of "stacking" them. Correct me if I'm wrong, but by the looks of the result you get now, it seems as if you get "internal" faces where the meshes connect.

Unity physics being what it is, will make the collision issue worse with internal faces as the collision solver uses face/vertex normal info. And when passing a edge (like the edge on a cube) the edge will have normals pointing "up" and "sideways" at the same time, resulting in multiple shape separation forces, which in turn causes the collision response to be even greater.

Side request for _Aka_ could you add a option to build render-mesh separate from the collision mesh. I've personally run into cases where I want to use a different shape for the collider. And this issue is probably one such case. The only way right now is to use two separate game objects, one with the renderer turned off and the other with the collider turned off. Would have been sweet with a Create Mesh node with two inputs; V Mesh and a separate V Collider.
Reply


Messages In This Thread
Ball jumps on colliders edges - by Dmitrii_Dzh - 04-24-2022, 07:50 AM
RE: Ball jumps on colliders edges - by _Aka_ - 04-24-2022, 01:43 PM
RE: Ball jumps on colliders edges - by Sacryn - 04-25-2022, 09:31 AM
RE: Ball jumps on colliders edges - by _Aka_ - 04-25-2022, 01:17 PM
RE: Ball jumps on colliders edges - by _Aka_ - 04-25-2022, 04:26 PM
RE: Ball jumps on colliders edges - by Sacryn - 04-26-2022, 06:50 AM
RE: Ball jumps on colliders edges - by _Aka_ - 04-26-2022, 02:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rough edges on tight corners migwellian 5 13 03-20-2023, 09:48 AM
Last Post: migwellian
  Scale Deform Mesh Along Spline? / aligning colliders MamasToast 9 71 10-31-2022, 03:44 AM
Last Post: tairoark
  Creating splines from the surface of existing 2d colliders Monomirror 2 486 08-18-2021, 03:55 PM
Last Post: Monomirror
  Mesh Lines - Horizontal and Vertical Edges Krypton 14 4,759 09-23-2020, 02:16 AM
Last Post: Krypton

Forum Jump: