Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎮 Enabled character/actor collision in multiplayer. #3050

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ohlidalp
Copy link
Member

This is an experimental spinoff from #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.

This is an experimental spinoff from RigsOfRods#3049. I felt inspired.
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.

Minor cleanup: removed the `enabled` param from `SetActorCoupling()` because it was dummy.
ohlidalp added 2 commits May 31, 2023 23:20
…king

how it works: once rorbot touches cab, it's position is 100% overriden by the cab position + rorbot's local position inside that cab's space (using transformation matrix).
currently cab collision is disabled, only the debug UI buttons can glue rorbot to cab.
@ohlidalp
Copy link
Member Author

ohlidalp commented Jun 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants