RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
1.01k stars 175 forks source link

Flexbody binds to nodes outside 'forset'. #2923

Closed ohlidalp closed 1 year ago

ohlidalp commented 2 years ago

Discord complaint by DannyWerewolf.

If a flexbody is bound to a detachable part and it detaches, the mesh keeps stretching after the vehicle, even though all nodes in the 'forset' have detached. obrazek obrazek obrazek

it's probably because the flexbody binds 3 nodes for each vertex: reference, X and Y, and only the reference nodes are taken from the forset, while the X/Y nodes are searched by distance.

Danny Werewolf has a feeling that it's not a specific node but the center of the truck.

DarthCainRor commented 2 years ago

Is his ror.log giving flexbody errors?

I'm fairly certain this happens when a flexbody has been defined using too few nodes as references. I believe it used to be documented somewhere, but flexbodies require 10 nodes to work, and not give errors/stretch, because they're looking for other nodes.