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 Pandiux · Sep 22, 2012 at 03:06 AM · collisioncharactercontrollerlaunchair

How to avoid Character Controller being launched to the air when colliding?

Hey, in my multiplayer game usually everything goes fine, until a player gets too close to other and they keep on moving, they're both using Character Controllers, so when they reach the other and keep going one gets launched to the air, how do I avoid this?

I'm not using any rigid bodies, but I'm using the scripts form the FPS prefab.

Comment
Add comment · Show 1
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 Pandiux · Sep 22, 2012 at 07:18 AM 0
Share

help please

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by alpaca of zion · Sep 22, 2012 at 08:16 PM

Put the characters in a special layer. (Top right corner of then inspector.) Then tell that layer not to collide with itself in Edit -> Project Settings -> Physics.

Comment
Add comment · Show 1 · 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
avatar image Pandiux · Sep 22, 2012 at 11:00 PM 0
Share

But, I do want the characters to collide

avatar image
0

Answer by aldonaletto · Sep 23, 2012 at 12:07 AM

That's weird! CharacterControllers don't react to collisions - they simply don't pass through other objects.
There are two possible reasons:
1- The character movement script is doing this mess: Edit the question and post your script (unless you're using the standard First Person Controller prefab - if so, tell us);
2- You've added a Rigidbody do your character: This will not work, unless you make it kinematic - non-kinematic rigidbodies and character controllers are incompatible, and the character may become completely out of control.

Comment
Add comment · Show 2 · 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
avatar image Pandiux · Sep 23, 2012 at 01:58 AM 0
Share

I'm not using any rigid bodies, but I'm using the scripts form the FPS prefab.

avatar image aldonaletto · Sep 23, 2012 at 10:55 PM 0
Share

Ouch! This script does some weird things due to the moving platform routines. Try to disable this feature in the $$anonymous$$oving Platform option of the Character $$anonymous$$otor component (in the Inspector). If this doesn't help, remove the components FPSInput Controller and Character $$anonymous$$otor, and use ins$$anonymous$$d the example script from $$anonymous$$ove

avatar image
0

Answer by imaginationrabbit · Jan 09, 2017 at 11:38 AM

I made a script to resolve this issue- its rough but it works- its on github here link text

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

11 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

Related Questions

No Collision with character controller 1 Answer

Collision With Character Controller 4 Answers

Colliding with a character controller? 1 Answer

Character Controller Collision 4 Answers

2.5D platformer main character collision 1 Answer


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