Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 GetColor · May 10, 2013 at 12:24 AM · collisionmultiplayercharacter controllercollision issues

Multiplayer: Rigidbodies, character controllers or something else?!

I'm creating a multiplayer game, and I was curious as to the best way to implement players and movement - because I've ran into ridiculous issues with any route I go.

I know physics are tough and/or laggy to get right over a networked game, so I decided to first try the character controllers. My game takes place in interiors, and thus there are walls. With the character controller on my player, they can walk right through walls. I threw kinematic rigidbodies on the walls, after hearing that character controllers do have collision with rigid bodies... but I guess I read it wrong.

So I went with rigid bodies on the players. When the game starts, my player begins sliding around uncontrollably. This doesn't have to do with the movement scripts I have, the physics object just slides around when there is no input. I read some people having similar issues with the solution being "it's just the physics engine, deal with it." They recommended me mess with the drag, but then the player becomes unmovable! (I also changed the collider from a capsule to a cube, thinking it might have to do with that, but no luck.)

So basically, I want to know what is the best way to do movement with a multiplayer game, whether rigid bodies are better or simply changing transforms and positions of players (there is no need for physics in the game) through code - AND any help with collision using character controller would be fantastic!

Just one issue after another with this project :\

Thanks!

Comment
Add comment · Show 2
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 ExTheSea · May 10, 2013 at 09:48 AM 0
Share

Well i would recommend you to use the character controller if you don't necessarly need a rigidbody for your game. Do your Walls have a Collider attached to them?

avatar image GetColor · May 14, 2013 at 08:31 PM 0
Share

Yes. Now, I just realized I may have been being dumb... I have been modifying the transform of the character controllers, and not using the move function. Would they collide with walls if I used the move function? I'm going to give it a shot.

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by GetColor · May 14, 2013 at 08:50 PM

Herp-de-derp I figured it out. I was translating the transform on the player I was moving, instead of using the simplemove or move functions of the character controller. The moment I did that, the walls worked like they were supposed to.

Comment
Add comment · Share
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

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

15 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

Related Questions

How do I use a power up to change the character I'm controlling? 3 Answers

Determinism of collision judgment of Character Controller 0 Answers

Multiplayer projectiles collision 0 Answers

How to slow character controller down when colliding with a wall? 2 Answers

Player registering collisions where there are none 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