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
1
Question by luiz_san · May 28, 2013 at 03:59 AM · collisioncolliderstuck

Colliders getting stuck on and trespassing mesh

Hi!

I'm having some serious problems with collisions and I beg for help. I want to make a game like F-Zero, with vehicles that are attached to the track by some kind of magnetic pull. I managed to get the basic controls working, like orienting the vehicle to the track normals and getting a proper behavior on twisting tracks, upside-down, loops, etc.

However, I got this strange problem as shown on the following picture:

When I'm running through a ramp or curve and hit the wall, the vehicle bounces off of it or if I insist, it runs through it smoothly, like it was supposed to be. But when I'm on a straight part of the track, it gets stuck immediately as soon as I hit the wall, and if I try moving out of it, I can trespass it and fall off the track.

  • I've tried all kind of colliders for the rigidbody - Convex Mesh, Box, Sphere and Capsule, didn't used Wheel Collider due to obvious reasons. As you can see, the huge Sphere Collider is trespassing the wall collider and any other would do the same.

  • The track, wall collider and vehicle Physic Materials has 0 friction values.

  • This happens even if the rigidbody speed is low and I'm using AddForce and not Translate to move it.

Any ideas? ):

Comment
Add comment · Show 2
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 clunk47 · May 28, 2013 at 06:28 AM 2
Share

Try adjusting the TimeStep to be a bit less than the default for more realistic physics. Also be sure that your rigidbody's collision detection is set to Continuous Dynamic. Be sure too, that you're not using "thin" colliders as your track mesh. Use a second mesh that is thicker, but not rendered, used ONLY as a collider. It is best to have a smooth collider for your mesh, especially a track. Hope this helps.

avatar image clunk47 clunk47 · May 28, 2013 at 06:30 AM 0
Share

Also be sure you're not using "thin" colliders as your track mesh. Use a second mesh that is thicker, but not rendered, used ONLY as a collider. It is best to have a smooth collider for your mesh, especially a track.

1 Reply

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

Answer by luiz_san · May 29, 2013 at 02:01 AM

Guess I figured out what was the problem. And I think it's a bug on Unity! I tried making subdivisions on the straight parts and it worked. I think that if the mesh part is too big, Unity won't handle the collision very well and results in weird things happening.

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

14 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

Related Questions

How to make an arrow to become stuck? 1 Answer

Rigidbody stuck in colliders when moving and ricosheting. 0 Answers

Why is my object getting stuck in the edge of other objects? 2 Answers

Help With Colliders 3 Answers

Collision.impulse.Set doesn't change the impulse's values 0 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