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
1
Question by Bonkahe · Sep 26, 2015 at 06:48 AM · physicsnetworkingmultiplayer

Unet remoteclient rigidbody physics

Alright so basically I'm working on my own little multiplayer project, the current method by which I'm running the characters is a rigid body system. Anyways the problem is that in order to have collision on the character I have to have the rigid body enabled, but that makes the remote client bug out and push away, cause the clients and servers are having issues with where the character is supposed to be. Because of the way I do stuff like lerping movement and animations I need the rigidbody enabled, if its not enabled the remote clients characters wont have collisions, and if the movement is frozen they simply wont move. Essentially I need a way to make the current player, collide with other characters but not have his physics affect other players movement.

Comment
Add comment · Show 5
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 Glurth · Sep 26, 2015 at 02:55 PM 0
Share

You could add an second TRIGGER collider to your player (yes an object can have two colliders like that), and change the colliders on the objects you want to detect collisions with, but not bounce off of, into trigger colliders. "Trigger" colliders will enable collision detection in code, but NOT use rigid body physics upon collision. Both colliding objects must have a non-trigger collider to "bounce".

I'm not sure if this will solve your overall issue, but this is how I would detect collisions without physics.

avatar image Bonkahe Glurth · Sep 27, 2015 at 03:05 AM 0
Share

@Glurth All right I'll try this tomorrow (just got in from work), and let you know how it goes.

avatar image Bonkahe Glurth · Sep 27, 2015 at 05:04 PM 0
Share

Eh that didn't work, at least not the way I tried to implement it, thanks anyways, I'm gonna keep trying other ways.

avatar image Arycama · Sep 27, 2015 at 06:35 PM 0
Share

Is there any reason you can't use a character controller? It also sounds like you may be attempting to move the player on both the client and the server. You should have "local player authority" set to true on the player's NetworkIdentity component, so that the server will not override the player's movements.

avatar image Bonkahe Arycama · Sep 28, 2015 at 02:24 PM 0
Share

Yea I got the local player authority set that's not the problem, as for character controller, I honestly for some reason was a dumb-ass when I programmed the movement and decided that using physics for it was a better idea, at this point I may just rebuild the entire thing cause the style of game I'm building has absolutely no need for that type of movement.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Unity networking tutorial? 6 Answers

UNET Network Transform Component lags 2 Answers

best way to make a multiplayer physics heavy game (3000+ rigidbodys) 2 Answers

Networked Physics 0 Answers

Changing rooms and spawning players with Multiplayer Example 2 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