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 /
  • Help Room /
avatar image
0
Question by NihkValentine · Mar 21, 2017 at 09:25 PM · gameobjectrigidbodynavmeshagentcapsulecollider

my cow object sinking through ground?

I made a cow object out of many capsules. First I created an empty game object and named it cow. then I added 7 capsule objects into the empty game object as children. these are the body parts, like head, leg, body. I put an AI script on the empty game object that was named cow. I also put a rigidbody on cow, the empty game object. I put capsule colliders on all the 7 capsule body parts, but not the empty game object named cow. p.s. I also put a navmeshagent on the cow empty game object. Also baked the ground navigation so the AI script allows the cow to wander around.

but somehow the model game object sinks its 4 legs below the ground whenever I press play. It's only the legs that sink, even though they have capsule colliders. the body hangs above the ground for some reason. but the body has the same capsule collider. This doesn't make any sense, because I did this whole process(even navmeshagent) before on another computer, and it worked that time. Any help to keep the whole cow afloat?

model looks like this:

Cow //empty game object with navmeshagent, rigidbody, and AI script -body //capsule 3d object -leg1 //capsule 3d object -leg2 //capsule 3d object -leg3 //capsule 3d object -leg4 //capsule 3d object -neck //capsule 3d object -head //capsule 3d object

Comment
Add comment · Show 7
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 NihkValentine · Mar 21, 2017 at 09:26 PM 0
Share

don't read the "model looks like this:" part, because the draft looked different than the posted version.

avatar image cjdev · Mar 21, 2017 at 09:27 PM 0
Share

Are the feet hovering just above the surface of the ground? If the collider clips with the ground plane it will sometimes fall through.

avatar image NihkValentine cjdev · Mar 21, 2017 at 09:42 PM 0
Share

ok so when I place the cow above the ground, and press play, it seems to fall and land on the ground, perfectly without any legs sinking through. but the thing is, the navmeshagent wont work. so the cow is just frozen and lifeless.

when I place the cow just a little above the ground, then press play, its legs sink through.

avatar image cjdev cjdev · Mar 21, 2017 at 09:47 PM 0
Share

So the problem is the navmesh agent doesn't have a collider component to work with. You can fix that a few ways, either make the capsules into one mesh in a modeling package and then tick the mesh collider or just remove all the other colliders and create a new box collider that encompasses the rough area of the cow. Just be sure the collider is on the same GameObject as the Nav$$anonymous$$esh Agent.

avatar image NihkValentine cjdev · Mar 21, 2017 at 11:10 PM 0
Share

ok cool how do I make all the capsules into one mesh modeling package?

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

127 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

Related Questions

Pros and cons to using Navmesh Agents over custom-made AI? 1 Answer

Capsule Colider can't affect by the force. 1 Answer

How to restrict object's movement to a bezier curve? 0 Answers

Game Objects/Prefabs are NOT rigid/accepting collisions 0 Answers

Accessing the rigidbody of a cloned Object? 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