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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by SOIL · Jul 28, 2010 at 11:41 AM · physicswheelbike

Increasing force script, physics and a special 2 wheel Bike setting

I have a special issue ... please help me on this! hm

i have a future bike.

  • It starts with a empty, which has a simple custom mesh collider on it.
  • This empty/mesh collider has a rigid body on it.
  • The empty holds the whole bike!
  • Under this empty are two meshes (the front & the back tail)
  • There are 2 wheels as another subobjects under the front & back tail meshes attached
  • Those wheels have no rigidbody. ... hm
  • The wheels have a mesh collider, cause i want excact collision behavior.

now what i need is a script, which i dont have (cause i am a pure grafic artist xD), that gives the empty (not the wheels) exponentially a increasing force/actuator/gear forwardly, by holding a mouse button, so that the bike moves forward and that the wheels are rotating by the friction of the ground and not by the force itself. imagine a jet engine that boosts the bike forward and the wheels are freewheeling rotating by the friction of the ground. The ground physic material is set to rubber too.

could & would someone please help me on this?

  • what script do i need?
  • what did i maybe wrong in my settings, by my special requirement?
  • i know that my requirement takes a lot of performance. but it should be more a simulation, than a faked bike physic game.

Please help me on this! :(

btw.. the steerment could be managed by another point at the back tail of the bike. which can be animated and simply assigned to a keyboard controller. so that's not the problem ... atm -.-

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer Wiki

Answer by 3dDude · Jul 28, 2010 at 02:54 PM

well i would try using a wheelCollider.

but if you set on the physics engine then you could try using a hingeJoint for the wheels.

Comment
Add comment · Show 4 · 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
avatar image SOIL · Jul 28, 2010 at 03:53 PM 0
Share

thnx man! after setting the wheels by using hingejoint the 1st time after my setting the wheels acted almost like i wish they should! interesting is that the spring parameters where set off, but still there is a spring to see. also the wheels are a bit unstable. the ridig body is the empty. are u strongly busy or is there a way to work with you in collaboration to finish this game? cause i am working with a scripter, who would do the gui, score and multiplayer part. but he is not so familiar with all the physics stuff and so. i do my part as a grafic artist and musician.

avatar image SOIL · Jul 29, 2010 at 10:33 AM 0
Share

well i played another day around with hinge joint and it turned out that this was the solution of all :D i actually rigged the bike to almost 99% perfectly. it is stable and nothing on the bike jiggles anymore. some mass tweaking still needs to be done, cause the mass values of all parts of the futurebike affects almost everything. thnx again 3dDude!

avatar image 3dDude · Aug 16, 2010 at 09:08 PM 0
Share

sorry i have not written back... i have only been using unity for about 1/2 year.. so i'm not sure if i could help you or not. i also dont have Unity pro so i could not help with stuff like that... but i be happy to help with anything that i know. just P$$anonymous$$ me on unity forum.

BTW i am 3dDude on the forum to.

avatar image japanitrat · Apr 01, 2011 at 12:54 AM 0
Share

can you explain how you got it working SOIL?

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

2 People are following this question.

avatar image avatar image

Related Questions

Bike/Motobike game 1 Answer

Bike tut for bike nut ? 0 Answers

How to keep wheels in place? 1 Answer

Stop physics without using Time.timeScale = 0? 6 Answers

How make front wheel bike turn left or right? 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