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 TheEmeralDreamer · Sep 27, 2011 at 02:27 AM · hovering

Model Hovers Over Terrain

I'm not entirely sure why this would start to happen, but my model has began to hover above the terrain. It has worked fine for ages, and after about 30 minutes of trouble shooting, everything seems to be fine. The only thing I did was remove a rigidbody attached to a completely different model. Considering everything appears to be in working order... any ideas?

http://i53.tinypic.com/kbxesz.png

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

2 Replies

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

Answer by syclamoth · Sep 27, 2011 at 03:49 AM

The answer to this problem is right there in the screenshot! Your capsule collider is somewhat larger than the character model. You need to tune it so that the bottom of the green capsule lines up properly with the character's feet! Alternatively (and this is what I always recommend for this kind of problem, regardless of how practical a solution it is), you should have a look at implementing the Unity Locomotion System- A fully functional character IK system for keeping your character's feet where they're supposed to go. It's especially useful for bumpy terrain, because it keeps the feet exactly on the surface they're supposed to be walking on. It requires a little setting up, and will change the way you program all your animation code (albeit by simplifying it somewhat), but is well worth the effort.

Comment
Add comment · Show 8 · 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 TheEmeralDreamer · Sep 27, 2011 at 03:52 AM 0
Share

Hmm. I'm a bit crunched for time with this particular project. Although, I haven't changed anything so the set up should remain how it was(which was working perfectly). I can change that as many times as I want.. (and in fact I have) which means it's probably being changed back somehow . o_O

avatar image TheEmeralDreamer · Sep 28, 2011 at 12:48 AM 0
Share

The problem isn't the character controller size at all. I created a video to show you what I mean, just fyi. I do need ideas on what could possibly cause this though. If I can't figure it out as a last resort I can start over from another project version but I'll lose alot of time o_O

http://www.youtube.com/watch?v=DBm4noLbz4Y

avatar image syclamoth · Sep 28, 2011 at 12:58 AM 0
Share

Ok that's pretty weird. Have you checked your collision layers to make sure that those fist colliders aren't interfering with the other collider? Why is your character rotating like that at the start, is that deliberate? Try putting the actual animated mesh on a child object of the one with the colliders etc. Is it something to do with your animations having a reference pose that is different from where they are when they walk? I still recommend using the locomotion system, it's not that hard to learn!

avatar image TheEmeralDreamer · Sep 28, 2011 at 01:01 AM 0
Share

I've checked every thing humanly possible. The only thing I can narrow it down to is a script error of some sort. Right now I am deleting all my scripts then I will import older versions of those scripts to see if that was the issue. Btw I did download that locomotion system, it sounds pretty cool so I'll give it a try.

avatar image TheEmeralDreamer · Sep 28, 2011 at 01:03 AM 0
Share

Btw no the rotation wasn't intentional. One second it worked. I tried to "clean up" some code, and the next it "didn't" work. o_O I'm so annoyed because I had 6 files open and not a clue which one I editted last..

Show more comments
avatar image
0

Answer by robrice · Mar 18, 2014 at 10:34 PM

I just had a similar problem with spheres. Now sure how/when but they began to appear to hover about .25 units above the ground while rolling. I found out that somewhere along the line I had changed the default sphere collider radius from .5 to 1. For some reason, this caused them to appear to hover .25 above the ground. When I changed the Sphere collider radius back to .5, the problem went a way. I can increase the size by using the transform scale instead.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Hovercar Script, object slowly descends instead 0 Answers

stop rotation when mouse cursor hovers over model 1 Answer

Hovering trees and grass 0 Answers

make character hover in correlation with parameter 1 Answer

Hovercar-like movement? 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