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 Wombat_Revolver · May 04, 2020 at 03:37 PM · rigidbodycolliderterrainplayer movementterrain bug

Player keeps falling halfway through terrain floor

This was not happening for the entirety of my time spent on this project until I added and then removed a failed Player Controller Animation script. My character now fails halfway through the floor so only his head and chest stick out. He still walks around and reacts to the terrain as if he's walking over it but his body is halfway under. I have tried everything that other people have said, from adding colliders and rigidbodies to making sure is Trigger is off as well as removing elements and re-adding them. My character is well above the terrain in the scene window and my player box collider is not intersecting with the terrain at all. Your help and suggestions would be greatly appreciated.

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

3 Replies

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

Answer by javiolvecal · May 04, 2020 at 03:57 PM

Hello! I'm not sure if this will work but you should try to change the Player's y coordinate to a higher value and (if the playes has a rigidbody) change the "Collision detection" to "Continuous". And if it doesn't work, change it to "Continuous Dynamic".

I hope this can helps you :)

Comment
Add comment · Show 10 · 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 Wombat_Revolver · May 04, 2020 at 04:22 PM 0
Share

I tried changing it to both as well as adjusting the y value more but it still drops down halfway below the terrain. Thanks for the suggestion though

avatar image javiolvecal Wombat_Revolver · May 04, 2020 at 05:09 PM 0
Share

If yo can publish an image of the scene view and two images of the Player's inspector and the ground's inspector maybe I can look for another solution :)

avatar image Wombat_Revolver javiolvecal · May 04, 2020 at 10:34 PM 0
Share

Here are the screenshots! Thanks again!

Show more comments
avatar image
1

Answer by JonPQ · May 04, 2020 at 06:29 PM

first off make sure that the animation you added is not moving your player's hierarchy down below the floor... simple to check.. Second... when you animate something with Animator... you cannot also change the same thing via code without having problems... the animator will usually overwrite whatever you did with code. e.g. rotations, transform, color etc.... sooo.... if you have control / movement scripts running on the root or some sub object in your charater's hierarchy... open you animator and child animations and inspect them to see what they are animating. I suggest you completely separate whats going on with the parent (scripts, character controller, collider, etc... all on the root, and then below that.. make an animation parent object, with the Animator on it, and below that the character skeleton and animated parts....

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 costin88boss · May 04, 2020 at 03:53 PM

is the character 2d or 3d? the terrain is made for 3d colliders. you may try using a cube, making it wider and then put a 2d collider instead of a 3d one, or just use sprites.

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 Wombat_Revolver · May 04, 2020 at 04:24 PM 0
Share

The character is 3D, if I try to use the 2D colliders on my character it just gets an error since it's a 3D object. I appreciate the help anyways

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

217 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

Related Questions

How to create a ground/terrain/floor that won't respond to gravity or objects falling on it? 1 Answer

FirstPersonController can walk through Mountains 1 Answer

Why my player doesn't stop when it collide with the roadblock?,Collision does not work, player won't stop moving when it hit an object with collider. 1 Answer

Custom terrain - Falling through terrain 1 Answer

Collision not working 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