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 Chris_u3d · Apr 03, 2012 at 09:45 AM · javascriptphysicscarconstraints

Physics driven cars without Wheel Colliders. Is it practicable?

Instead of using Wheel Colliders, I'm aiming to use cylindrical mesh colliders as wheels for vehicles.

Initially the obvious solution to me was to attach four rigidbody cylinders to a rigidbody car with configurable joints, with limited upward/downward movement for suspension and free forward/backward rotation for rolling the car along. This worked pretty well until I adjusted the rigidbodys' mass to realistic values, resulting in large forces moving and bending the joints ways I don't want.

Then I tried keeping the wheel from moving and rotating the wrong way by scripting transform limits:

 Target.localPosition.x = 0;
 Target.localPosition.z = 0;
 Target.localRotation.y = 0;
 Target.localRotation.z = 0;

But it seems that this prevents proper rotation of the wheels and allows the wheels to exert forces in the direction it would want to move and bend were it not contsrained by script.

I tried searching for similar projects or tutorials and I couldn't find any. Any suggestions?

Thanks!

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 Siccity · Dec 27, 2013 at 01:57 AM 0
Share

I'm having the same problem. The wheels are too loose

avatar image Benproductions1 · Dec 27, 2013 at 04:11 AM 0
Share

It's definately possible to make your own "Wheel Colliders", however it's going to be a lot harder than just adding a bunch of rigidbodies as wheels.

avatar image Kiloblargh · Dec 27, 2013 at 05:29 AM 2
Share

Why?

WheelColliders were added to the physics engine in an effort solve the sorts of problems that you are attempting to create for yourself.

avatar image sparkzbarca · Dec 27, 2013 at 02:29 PM 0
Share

yea the issue is your literally reinventing the freaking wheel dude. :P

If you scripted it up what you'd end up with is wheel collider code.

avatar image Siccity · Dec 27, 2013 at 11:27 PM 0
Share

personally I need it for a rc car styled vehicle that has big wheels and can drive upside-down. wheelcolliders don't work here

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by fred_gds · Dec 27, 2013 at 04:38 PM

Well my suggestion would be to just don't use any colliders on the wheels at all.

Just calculate the force and collision and so on by yourself using different layers.

Or just get UnityCar it's a great plugin offering a car system without wheel colliders.

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

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can someone help me fix my Javascript for Flickering Light? 6 Answers

Setting Scroll View Width GUILayout 1 Answer

Show "Score:5" on my screen, how? 1 Answer

How to check if car entered garage... then if true, do a specified function ? -1 Answers

How to set max speed for this car ? 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