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
3
Question by darkhog · Jan 05, 2013 at 07:59 PM · rigidbodycharactercontrollerfalling-through-floor

Why my rigid body with character controller is falling through ground?

Why? I am sure that collider for ground is set up properly, because it works fine with capsule collider on character's part, but character is falling through ground when character controller is used. I need some features that only Character Controller can offer me such as checking if object is on ground (for jumping), but with it falling through ground...

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 fafase · Jan 05, 2013 at 08:11 PM 0
Share

Are sure the capsule of the CC is entirely above the terrain. If it is just sligtly (and I mean slightly) below then the whole guy goes through.

avatar image darkhog · Jan 05, 2013 at 08:13 PM 0
Share

Yes, I am sure. Even make it so high, and it still felt through. With capsule collider on the same height it works fine, but not with character controller. //edit: Terrain is at Y 0 and character is at Y 4.

avatar image fafase · Jan 05, 2013 at 08:26 PM 0
Share

Are you actually having Rigidbody and Character Controller both on?

avatar image darkhog · Jan 05, 2013 at 08:27 PM 0
Share

Yes, I do. Otherwise I wouldn't have gravity.

avatar image Flickayy · Jan 26, 2013 at 02:34 PM 0
Share

You could always freeze the Y position on the character's RigidBody component. Then manually adjust the Y position of the character in the scene view.

4 Replies

· Add your reply
  • Sort: 
avatar image
5

Answer by vladk · Jan 31, 2013 at 10:43 PM

okay, the thing is - they CHANGED how the CharacterController works in Unity 4.

You don't need a rigidbody on it anymore. In fact if you just have to have the rigidbody on it - make sure it has it's "Is Kinematic" option turned on or at least has the "Use Gravity" option tuned off. Because if you won't do that the rigidbody will literally "fall" your character down no matter the colliders.

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
avatar image
0

Answer by BlenderKiel97 · Jan 05, 2013 at 08:15 PM

Because your character controller and ground both have colliders. If 2 colliders are overlaying each other, Unity ignores them (right?). To fix that, just drag your character controller a little by Y axis up.

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 darkhog · Jan 05, 2013 at 08:21 PM 0
Share

Nope, that's not the case. I am pretty sure they are NOT overlapping. Some screens: http://imgur.com/Uu8b7 . Ground has standard box collider. Also if that would be the case, it wouldn't also work with CapsuleCollider - it doesn't work only with CharacterController. But I need CharacterController...

avatar image
0

Answer by Azzerhoden · May 27, 2013 at 07:11 PM

I don't know if you have the same issue I had, but when I had adjusted my character controller I accidentally moved the Graphic away from the Controller. So even though the Graphic (capsule) was above the ground (and I moved the camera as well), the Controller was still below the ground.

Even after I fixed it I still saw weird behavior with the Graphic not adjusting to the current height of the Controller. After I removed the First Person Controller and re-added it, I made sure to adjust the Y axis of the Controller itself, and the issue was resolved.

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
avatar image
0

Answer by FireHawk33 · Dec 09, 2013 at 12:23 AM

Are you using a Blender Model? If you are make sure that you checked the "Generate Colliders" box.

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

16 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

Related Questions

How to handle movement in a multiplayer FPS? 0 Answers

character controller + physics 1 Answer

Sphere + rigidbody + character controller 1 Answer

Reducing overhead while controlling many units 0 Answers

2D rigidbody movement & walls 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