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
991 stars 175 forks source link

🎮 Enabled character/actor collision in multiplayer. #3050

Open ohlidalp opened 1 year ago

ohlidalp commented 1 year ago

This is an experimental spinoff from https://github.com/RigsOfRods/rigs-of-rods/pull/3049. I felt inspired. characterCollNetworkedDaf

Since the collision works by "sticking" the character to the actor while in contact, I realized I could extend our existing driver-attachment logic to also handle this attachment.

It's glitchy right now, partly because the networked cab offset is always in world coordinates, so it causes sliding when the vehicle turns.

ohlidalp commented 1 year ago

I'm trying to fix the turn-sliding problem and I'm not vey successful. I managed to glue the character onto the cab so he doesn't slide but can't walk either and the positioning is still off. See commit (DEBUG - DIRTY) super-glued rorbot on cab, sliding gone but so is walking obrazek