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 Meltdown · Feb 13, 2011 at 07:41 PM · collidermeshwheel

Strange behaviour with wheel collider

I'm building a racing game using wheel colliders and using a basic waypoints script I got from another site.

I ended up changing the original car mesh from the tutorial, to my own mesh.

The strange thing is when I control the player car, my mesh drives around perfectly and its as I want it, but when I do a copy of the player car, and then add the AI car waypoints script, my AI car just drives to the right and straight into a wall.

I've tested this and rebuilt the cars from scratch many times, but its only with my specific mesh the AI car moves to the right and gets stuck on the wall. When the AI car has the original car mesh from the tutorial, it drives perfectly. So the problem is not with the AI Car script, or the waypoints.

So my question is, why does my mesh drive fine with player input, but veer to the side and just drive into the wall with an AI Car and the waypoints?

(Note : I've tried two different waypoint scripts)

This one has me baffled. If anybody has any suggestions of thoughts, please do share them.

Thanks

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 Thom Denick · Feb 13, 2011 at 10:36 PM 0
Share

Just a point in your debugging logic. It could be the AI Script, in fact I can't imagine it's not the AI script, since that should be the only thing making your car go. Obviously there is something different between the two car meshes that is having an effect when your script processes it. Can I suggest rebuilding the AI Script until the divergence occurs?

avatar image Thom Denick · Feb 13, 2011 at 10:39 PM 0
Share

I think if you posted the code that is actually moving your car that would help as well. Is the car under normal gravity and PhysX?

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

No one has followed this question yet.

Related Questions

Wheel collider help 0 Answers

Internal collisions 1 Answer

Discontinuity on mesh collider seams 2 Answers

Edit WheelCollider's Axis, not the Mesh 0 Answers

Rigidbody objects not colliding. 4 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