Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[Released] Vehicle 2D Physic Kit

Discussion in 'Assets and Asset Store' started by stanislav-osipov, Oct 30, 2013.

  1. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Hello, I would like to present Vehicle 2D Physic Kit for Unity. This Tool allows you to add game-mechanics to any vehicle for 2D or 2.5D game. This Unity plug-in follows the following principles:
    1. Your bike, car or truck should just fells right.
    2. The source-code is clean, clear and easy-to-read and easy-to-understand.
    3. Unity integration with detailed design-time editor panes.

    $cover.jpg
    Documentation | Web Player Preview (4 MB) | Available on Asset Store

    As I sad before I tried to make this package with clean and extendable open source. But one of the greatest thing is Unity this is Unity editor, so decided make really good and useful custom editor for this kit.

    It has number of different option with allow to easily configure you vehicle to make your game exited and fun.

    $settings.png


    Besides it has strong API with you can use in runtime. Custom editor also include Vehicle info tab with runtime vehicle stats. You can access it easily from your scripts.

    $Vehicle_2D_-_Google_Drive.png

    Here is more detailed description of etch tab:

    Some part of setting available in Vehicle 2D Web Player Preview , so can play with it for a while.
    Go ahead, click Web Player Preview [ and have some fun.

    Few tips:
    If car won't go up on the hill play with this settings:
    General -> Torque
    Wheels -> Wheel Tenacity

    If you have any questions, problems or suggestions, please contact me by e-mail: lacost.st@gmail.com.
    I Hope you going to love this tool. Have fun and good luck with your development.
    Regards, Stanislav.
     
    Last edited: Nov 5, 2013
  2. Andrew Valonsky

    Andrew Valonsky

    Joined:
    Sep 23, 2013
    Posts:
    2
    Cool Stuff!
    Bike and Big Foot fills really great!
     
  3. RetronamicGames

    RetronamicGames

    Joined:
    Feb 9, 2013
    Posts:
    84
    Are 3D vehicles supported?
     
  4. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    What do you mean by 3D vehicle?
    In the demo web player all cars are 3D, but you can use 2D sprites as well.

    It calls 2D Physic kit, because it polished to work without steering.
     
  5. DjEmix

    DjEmix

    Joined:
    Feb 7, 2013
    Posts:
    11
    Hi!! I am interested in this plugin! When can I get from store?
     
  6. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Hello DjEmix
    It was submitted 3 days ago, so I guess it should be available in a week or so.
     
  7. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
  8. Weezel

    Weezel

    Joined:
    Apr 20, 2013
    Posts:
    25
    How hard would it be to convert this to a 3D controller?
     
  9. Shigidy

    Shigidy

    Joined:
    Dec 14, 2011
    Posts:
    441
    I just bought it and played the demo, the monster truck was awesome. I just wanted to make some requests if I could.

    -Could we have a checkpoint system, so in case you flip over you don't have to start from the beginning.
    -A timer so we could set up leader-boards for people to beat others.
    -A 3 star system based on time, like 1:00 one star, :45 two stars, :30 3 stars.

    Also not really a request but do you know of any great products that would help make different tracks for this type of game. If you could somehow have a level editor too, that would be awesome or if you could point me in the right direction that would be great.
     
  10. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    Hello, is there a script for a mobile controller in the package?
    Gas pedal, tilt forward/backward buttons and etc. Thanks.
     
  11. softwizz

    softwizz

    Joined:
    Mar 12, 2011
    Posts:
    793
    Just picked this up in the 24 hour sale!

    Its good and saves a lot of time but...

    How is this done?

    I tried it with a 2D sprite but couldnt use any 2D physics such as rigidbody2D or any 2D colliders as the created vehicle relies on rigidbody (the 3D one, and cannot be removed).

    I got it working fine with 3D physics apart from adding colliders to the vehicle body, such as the roof, front and rear bumpers etc...

    I did use box colliders but my test sprite has a slanted roof and the box collider wouldnt rotate.

    Maybe now that Unity has built in 2D you should change the name as the way it is worded leads one to believe it uses the built in 2D physics.

    Still an excellent package and well worth buying if you are wanting to make this type of game as it is easy to overcome these issues just by using 3D assets.
     

    Attached Files:

    Last edited: Dec 19, 2013
  12. chaniago.hendra

    chaniago.hendra

    Joined:
    Apr 8, 2013
    Posts:
    1
    i have sama problem
     
  13. AlexGorcea

    AlexGorcea

    Joined:
    Aug 20, 2013
    Posts:
    22
    Welp, I can't find the bicycle prefab from the webplayer. Please tell me you didn't remove it.
     
  14. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Hello guys.
    Sorry for slow replay. I do not know why I am not received e-mail notification fore this thread. Any way.

    I am sorry but, goal of asset is not making Game Example. It's about developing racing physics solution for 2D/ 2.5D Games. Road map a little bit different. Will post it in next message.


    Nope. But I will treat it as feature Request and will add to the upcoming version.

    softwizz Good point. First of all name will be changed to the 2.5 Physics kit. But Unity native 2D will be supported in future version that os for sure.

    I did. I got a lot of complains about it. And bike will be returned in the next version, witch was submitted to the store today. You can send me your e-mail, so I could send you updated version before Asset Store release.

    Cheers!
     
  15. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Here is road map for upcoming releases

    • Gear system
    • Sounds
    • Ability to switch to the 2D physics
    • Add rider example to the bike/moto

    And of course there is a room for optimization.
    Appreciate your support guys.
     
  16. softwizz

    softwizz

    Joined:
    Mar 12, 2011
    Posts:
    793
    Excellent news on the future updates.

    I just want to say that this is a great asset for making this type of game and is well worth buying.
     
  17. Game-Whiz

    Game-Whiz

    Joined:
    Nov 10, 2011
    Posts:
    122
    What's performance like in mobile devices?
     
  18. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    I am going to submit app to the app store in future as performance example.

    Currently I have around 40FPS on iPhone4 and 60+ FPS on iPhone4s / iPad 2
     
  19. kirkfernz

    kirkfernz

    Joined:
    Sep 16, 2013
    Posts:
    31
    How do I make my car move faster? Max Speed only increases the speed to a certain extent, after that no matter how much I increase it the speed doesn't exceed a certain speed.
     
  20. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    You should increate engine torque to achieve faster acceleration.
     
  21. kirkfernz

    kirkfernz

    Joined:
    Sep 16, 2013
    Posts:
    31
    I increased the engine torque but the acceleration doesn't increase after a certain point.
     
  22. kirkfernz

    kirkfernz

    Joined:
    Sep 16, 2013
    Posts:
    31
    please answer my question, I need to make my car move faster, I increased the engine torque but the maximum speed is still slow. I need to make it move a lot faster.
     
  23. ilovesine2

    ilovesine2

    Joined:
    Jan 12, 2013
    Posts:
    7
    Hello

    How to make the vehicle be able to jump? I try to apply the force to Rigibody using addForce function but that not work. :(
    Please help me...

    Thanks
     
  24. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Hello.
    Sorry for delay, if you nee quick answer please send me and e-mail.
    But generally, physic setting can also limit your car movements. Please send me your project sample, and I will fix your issue.


    That is right direction. You need to add some force at vehicle Transform.up vector. It should work. If you steel have issue with this, please send me an e-mail.

    P.S. My e-mail is: lacost.20@gmail.com
     
  25. vovkasolovev

    vovkasolovev

    Joined:
    Jul 10, 2013
    Posts:
    5
    Hello!
    Please, can you increase or remove "Whell Size" maximum limit 2. I need 3-10 or more.
    I think all settings need more range, if it possible.
     
  26. johnny12345

    johnny12345

    Joined:
    Oct 8, 2012
    Posts:
    45
    anyway you could implement a rider on the bike,or explain how to set a rider up

    thanks
     
  27. ProjectOne

    ProjectOne

    Joined:
    Aug 9, 2010
    Posts:
    442
    Considering this asset

    any ETA for implementation of Unity 2D Physics and Rider example?
    Thanks
     
  28. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Hello.

    No problem. Curently you can just change limit by your self. source code is fully open.

    Thanks for your inretest. I planing to do the rider example to the end of next month. Working on gear box currently. No time rage for Unity 2D Physics now.
     
  29. ProjectOne

    ProjectOne

    Joined:
    Aug 9, 2010
    Posts:
    442
    thanks for your reply lacost
     
  30. ProjectOne

    ProjectOne

    Joined:
    Aug 9, 2010
    Posts:
    442
    oh lacost I sent you a PM the other day, had some more question in there, if you get time if you could look at it please, thank you
     
  31. Kastar-Troy

    Kastar-Troy

    Joined:
    Jul 18, 2012
    Posts:
    29
    Is there a way to make the wheels gain traction on the ground better? I've tried using different physics material on the wheels with some slight success I think, seems to grip on the road better for take off, however when breaking it doesn't seem to have the same effect, brakes very slowly.

    Why do the wheels spin like crazy when accelerating? Couldn't the code check for the speed of the vehicle and ensure the wheels don't spin too fast for it's speed and direction?

    Currently a 4 wheel car will slam on the brakes by spinning all 4 wheels backwards, it doesn't look very good :(

    Great asset though :)
     
  32. Kastar-Troy

    Kastar-Troy

    Joined:
    Jul 18, 2012
    Posts:
    29
    I've slowed down the bike on my game and it looks better. Will wait for the new release with bike support hopefully
     
  33. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Hello.
    About wheel slip. just feel free to modify grip property.
    And the update with bike is released!
     
  34. supermud

    supermud

    Joined:
    May 15, 2013
    Posts:
    31
    Is there any mobile compatibility?
     
  35. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Well, depends, of what do you mean.

    1) Yes it designed and tested to work on mobile
    2) No, there is no example controls in the plugin, but I will add those in next version.

    Cheers!
     
  36. supermud

    supermud

    Joined:
    May 15, 2013
    Posts:
    31
    Okay thanks
    Okay Thanks
     
  37. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    I pretty sure it should be live in few week, just need to do more polishing work :)
    Cheers!
     
  38. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Well switching the wheels can be done easily but switching the mesh.
    About full wheel drive, you will be able to set torque coefficient for each wheel.

    Cheers!
     
  39. Shigidy

    Shigidy

    Joined:
    Dec 14, 2011
    Posts:
    441
    Could you add a simple checkpoint system for like a save for halfway on the track.
     
  40. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    I am more focused on improving physics and adding physics features.
    the checkpoint system is connected to your gameplay architecture it's almost impossible create checkpoint system with will work for everybody. And not connected with physics at all.
    But I appreciate your suggestion!

    Cheers!
     
  41. chubby owl

    chubby owl

    Joined:
    Jun 5, 2013
    Posts:
    8
    Hello.
    Does it support manual transmission?
     
  42. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    hello, not yet.
     
  43. eridani

    eridani

    Joined:
    Aug 30, 2012
    Posts:
    655
    Can the accelerometer be used to control the vehicle's forward/back tilt?
     
  44. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    there is C# api with accept value from 1 to -1 in order to control vehicle tilt, so it up to you how to pass those values, usn buttons, joystick or accelerometer.

    Cheers!
     
  45. liuxuan

    liuxuan

    Joined:
    Oct 13, 2014
    Posts:
    7
    I bought vehicle 2d physics kit version1.5, and I tried to change the value of suspension limit in preview scene, it acted really strange and totally different from web demo, do you have any advise or can you send me the older version of this kit just the same as your web demo.
     
  46. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
  47. uzairahmed

    uzairahmed

    Joined:
    Dec 3, 2014
    Posts:
    2
    Has anyone tried using the touch controls on mobile. If so please share the method used.
     
  48. supermud

    supermud

    Joined:
    May 15, 2013
    Posts:
    31
    I am wondering the same thing
     
  49. streetjustice

    streetjustice

    Joined:
    Feb 12, 2014
    Posts:
    6
    Is this working in Unity 5? I'd love to purchase it.
     
  50. kilik128

    kilik128

    Joined:
    Jul 15, 2013
    Posts:
    909
    any chance to get fix for unity5 please ?