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
0
Question by Azial · Mar 10, 2013 at 10:00 PM · rotationcolliderfrictioncylinder

Rotating friction problem - Nothing works!

Hi,

my problem is similar to this one: http://answers.unity3d.com/questions/121833/Friction-issue-with-rotating-sphere.html. But for me, the solution doesn't work.

My setup is a bit different: I have a flat cylinder with its plane side in y-direction. A road on both sides fits closely so that a car with wheelcolliders should drive over the cylinder. I want the cylinder to rotate and affect the car (drift away a bit or so). The Problem is that I can't achieve the wished effect:

  • Rotate the transform without rigidbody: http://www.imagebanana.com/view/p58wn8n7/WithoutRB.jpg - nothing happend

  • Apply a rigidbody and set to 'isKinematic' didn't work either

  • unselect 'isKinematic' but set all constrains but y rotation and apply angularvelocity every frame: http://www.imagebanana.com/view/yfp815m5/WithRB.jpg - car is flipping like crazy when it touches the surface of the cylinder (no, the velocity isn't to strong)

The problem could be the meshcolliders attached to both the road and the cylinder. The rotation is quite shaky and sometimes even in the wrong direction, but I set a really low velocity. When I set the cylinders meshcollider to 'convex' it comes even stranger.

I read that there are problems with two meshcolliders colling with each other, but what should I do in my setup? Unfortunately, there is no cylinder-collider :( Any suggestions? The only idea I have at this point would be a cosmetic rotation, but write a script to apply forces to the car according to its position on the cylinder.

Comment
Add comment · Show 4
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 Azial · Mar 11, 2013 at 04:14 PM 0
Share

Well, I actually named it "turntable" in the Editor ;). Ok, my car has a low poly version of it self a a mesh-collider because it's hard to fit box colliders to those sportcars (have a Lamborghini too), maybe I could try again with box-colliders, but the real problem is, that the turntable don't rotate well, when I attach a rigidbody to it, so it seems somehow it doesn't really fit in the street and makes choppy rotation, even I made the hole in the street bigger.

Here's a screenshot: edit: upload function seems buggy, can't hit "accept" or "cancel", theres just a picture preview in front of all.

avatar image Azial · Mar 11, 2013 at 04:22 PM 0
Share

just uploaded the screenshot somewhere else: http://www.imagebanana.com/view/4w7xk27c/HoleScene.jpg

avatar image Azial · Mar 11, 2013 at 04:31 PM 0
Share

Ah, my fault with the shoppy rotation: I had a collider on the small cylinder in the middle, it blocked the turntable. Now the rotation is smooth, but the car's falling through the turntable, whether convex or concave setting on its meshcollider oO!

Is there actually really no way of implementing a cylinder-collider? It's just so mandatory when you think on primitives.

avatar image Azial · Mar 11, 2013 at 05:08 PM 0
Share

I deleted the meshcolliders on my cars and add some boxcolliders, but doesn't work either. I'm going to just delete the turntable, maybe replace it with something cooler ;) Thanks anyway.

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

11 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

Related Questions

How can I rotate a player proportionally over a mesh? 1 Answer

adding sphere colider rotation movment changed 2 Answers

Rotation and friction between objects (ball and flat service) 0 Answers

Rotating a MeshCollider 0 Answers

How to rotate collider? 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