Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by ThePwnicorn · Mar 14, 2020 at 08:47 AM · movementphysicsmultiplayerjoints3rd person controller

Pull/share an Object with multiple Rigidbody 3rd person Character controllers

I have been working on this for months. I keep working on it in 1 to 2 week spurts then deciding to come back to it later! I basically want to be able to "Team Carry" an object between 1-5 players (all local multiplayer on gamepads). This is probably the easiest example to help illustrate close to the behavior I'm looking for:

Mario Party "Dust Buddies" mini game
https://www.youtube.com/watch?reload=9&v=1LqvnR1IrLk

You can see 3 players controlling/pulling around a vacuum in the clip.
1.They each can pull independently of one another.
2.Their pulling can counteract/fight one another if walking in opposite directions.
3.The angle they are pulling at adjusts/rotates the object being pulled in a believable way.

Here is what I have currently working:

https://youtu.be/s07WdpupvOs

I am using a Rigidbody Character Controller solution. I am currently moving them using Vector3's derived from the left stick of their players gamepads.


The closest solution I have got to solving this is using spring joints. There are many different kinds of objects that can be grabbed/carried in the game. I basically have been manually adding "handle" areas(rigidbodies with some artwork to represent a handle) on each object as children, then I add a spring joint to the parent (one for each handle child) and connect their "connected body" segments to each handle Rigidbody. I then have a script that adds a spring joint to a PLAYER when they get in range and hold down the grab/carry button on their gamepad and that spring is destroyed when the player releases the button.
It works like this:
A-->B<--C
OR
GrabbableObjectSpring---Pulls toward-->>>Handle Rigidbody<<<--Also pulls toward--Player Spring
The handle kind of works like a buffer between the objects?
There are many problems with this solution:
It's unpredictable.
It stretches too far in many cases and the handles start overlapping one another and creating a mess!
Currently the spring joints manually placed on the object are not destroyed (to maintain connection to the handles) so they are always active and slightly jiggling. If the object happens to be off the ground when a player releases it it sloooooooowly lowers to the floor as if it's meeting resistance from the springs.
It SUCKS!


I have recently been trying to just move the object by adding the Players' rigidbody velocities to the object's rigidbody.velocity. That kind of works but:

1. It doesn't rotate the object
2. Players no longer have any spring pulling them back toward the object so if another player begins grabbing as well and pulls in the opposite direction, the players simply move out of range of the object while the object remains in place.


I am at my wit's end with this. I'm begging for a smarter and fresher set of eyes to take a look at this. Advice? Helpful code snippets? Is there a simpler way to approach this? Most solutions that pop up I've found are dealing with only 1 person (usually First Person VR grabbing) that don't really address the issues of my particular case.

Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JPhilipp · Mar 14, 2020 at 09:34 AM 0
Share

@ThePwnicorn Could you share here a video recording of how your current mechanics play out, so we can better see what's wrong with them?

avatar image ThePwnicorn JPhilipp · Mar 14, 2020 at 09:48 AM 0
Share

Yes. Hopefully this is clear enough.

https://youtu.be/s07WdpupvOs

I will update it in the Original post as well.

avatar image JPhilipp ThePwnicorn · Mar 14, 2020 at 09:54 AM 0
Share

@ThePwnicorn Looks really cool already! I wonder if the Obi Rope asset supports your multi-pull use case? $$anonymous$$ight be worth asking its dev.

Show more comments

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

308 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Rocket Jumping Woes 1 Answer

Hinge Joint Segments rotating offscreen 0 Answers

Hinge Joint rotating on its own 0 Answers

bouncing a puck of a vertical wall through code 0 Answers

Bend object with physics interaction 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges