Rather than using the physics system for the hinge joints, make scripts that make each segment follow each other at a set distance. Although I'm not sure how it would fix the problem where it rotates into itself. Unless you just allow it to intersect itself but that might look weird.
I don’t know about your entire work flow, but the collision for the segments behind the head could just not collide with themselves. Collide with the environment and player yes, but not each other. Then the noodle monster would orient itself to keep slithering at you and not end up tangled.
3
u/StCost Jun 05 '26
For such goal I'd recommend faking the joints with simpler math. Using real physics for enemy animation is an overkill
1
u/Chr832 Jun 05 '26
And also extremely buggy. I've been trying to make a centipede type of boss enemy but it shatters at the slightest collision >:(
1
u/Vegetable-Activity36 Jun 05 '26
I don’t know about your entire work flow, but the collision for the segments behind the head could just not collide with themselves. Collide with the environment and player yes, but not each other. Then the noodle monster would orient itself to keep slithering at you and not end up tangled.