Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[RELEASED] Simple Motocross Physics

Discussion in 'Assets and Asset Store' started by AiKodex, Aug 8, 2022.

  1. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    Simple Motocross Physics is a AAA Motocross Physics Asset built to work in new generation games. Develop High Fidelity Motocross Games at par with some of the Triple A titles. Based on the foundation of Unity Joint Physics and DOTS/Jobs, different kinds of bicycles can be easily ridden while maintain high performance.

    [Asset Link] - Simple Motocross Physics



    Pipelines Supported: Standard, HDRP, URP and SRP.
    Platforms Supported: PC / Gamepad / Android and iOS.

    Animation Rigging v1.0.0 is used for customizable IK to fit any style of riding. Procedurally / algorithmically generated IK.

    Website and Support

    This asset packs features such as :

    Types of Vehicles : Dirt Bike, Trial Bike (or Supercross bike), Adventure Bike, Quad Bike, Dirt Scooter. Customizable color schemes and liveries. Clean geometry from 10k-25k tris. Pivots aligned in accordance with the controller script. Separated customizable parts.


    Controller Features : Engine Settings - Torque, Gears, Acceleration Curve, Steer Angle, Lean Dynamics, Wheel Friction, Air-Time settings among many others. Versatile script with a huge range of customizability. A general purpose controller script which can be extended to other types of vehicles such as motorbikes.


    Customize IK Style : Active Ragdoll like Impact Motion, Customizable IK Targets, Body Damping on slopes, Natural Balancing Motions. All of these settings are available in a script and can be changed at runtime. This script gives a organic motion to the animations. Only 3 Humanoid Animations have been used in the asset, the rest of the motion is controlled via IK.

    Supports any Custom Character : Replace the default character with any custom character. Works best with Mixamo Rigs. Built on a Mixamo Styled Rig, the asset can easily replace the character with a mixamo rig in a matter of minutes using Editor Scripts.

    Editor Scripts : The Editor Scripts included in the asset can replace the cyclist and setup up your custom character within minutes. Sets up joints, IK Targets, assigns gameobjects and links the together, copies essential components, fills up rig builder from the animation rigging package) automatically in a single click.

    Easy Controls : Because the script uses Input Axes (legacy), the controls are very easily modifiable to suit mobile platforms - Android and iOS. The controls can be easily modified to suit Gamepad and Controllers. Movement is easy (WASD / Arrow Keys + Shift) yet natural looking. New Input system is not yet supported.

    Simple C# Scripts : Optimized and efficient scripts. Little Coding is required to modify the scripts. The scripts are well organized and neatly arranged with intuitive functions. Added comments to make scripts easier to read and understand. Physics coding is extremely easy as the asset employs a rigidbody workflow. All rigidbody functions work well on the body of every bike.

    Cycle Textures and Liveries : UV unwrapped bikes that look great with abstract textures. Apply any stylized texture to the bike bodies.

    FPS Perspective : Ride down hill, climb mountains and race using the FPS camera style will increase the realism of the simulation. Designed using real life GoPro footage, this POV can add a new dimension in your game.

    Free of cost unlimited updates and support : We will be offering all new and free updates regarding new bike types, IK improvements, textures and liveries for cycles, AR/VR support, bug fixes and much more. Our support email is info@aikodex.com. Please feel free to ask us your questions and we will be more than happy to attend to them.


    What's there in the pack:

    + 5 moto vehicle variations
    + 1 Prototyping Environment. [Environments shown in videos and display pictures are not included]
    + Controller, IK and animation scripts
    + 4 Distinct Riders, with various cloth textures
    + 3 Animations, all other animations are procedural
    + Editor Scripts to help setup a custom character
    + Mobile Controller
    + 11 Scenes
    + 8 page Documentation


    Other related assets you can try out with this asset:

    Simple Bicycle Physics
    Simple Motorcycle Physics Pro
     
    Last edited: Aug 9, 2022
    CodeSmile, J2T, Rowlan and 1 other person like this.
  2. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    3,819
    This looks sooooo awesome. I've been waiting for an asset like this. Really looking forward to toying around with it :)
     
    AiKodex likes this.
  3. J2T

    J2T

    Joined:
    Mar 15, 2020
    Posts:
    9
    Looks awesome :eek:, great job
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,019
    You should call this "Realistic Motocross Physics". Came here expecting to have some "simple physics" laughs :D but then my jaw dropped. :eek: Nice work!

    PS: add link to asset store. ;)
     
    AiKodex likes this.
  5. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    Haha, thank you!
    We've added the link as requested.
     
  6. claudius_I

    claudius_I

    Joined:
    May 28, 2017
    Posts:
    247
    did you put free for owner bicycle physics asset?
     
  7. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    We would like to add a discount for the members who already own the Simple Bicycle Physics for the initial weeks while the asset is still improving. While tweaking the upgrade paths, we may have put half off discount on an already new- release half off asset for the owners of SBP. This has been rectified now.
     
    claudius_I likes this.
  8. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    3,819
    Having myself some fun in an abandoned factory :D

    1.jpg
    2.jpg
    10.jpg
    Asset is really awesome and impressive. I already have a wish list:

    * higher vertex count or more detailed textures for hdrp if possible, the tires look a tad flat; not that one would notice while playing, just for eye candy :D
    * smoke for exhaust pipe
    * in general vfx for ground

    Setup is super easy and straightforward.

    Oh, and scratch "Simple" from the asset title.
     
    AiKodex and J2T like this.
  9. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    3,819
    Added a ramp using my asset YAPP. I'm so excited about this asset, it's obviously a lot of fun :D

    yapp ramp start.jpg
    yapp ramp flight.jpg
     
    ToukaGames, AiKodex and J2T like this.
  10. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    3,819
    Had some fun with the ATV in NatureManufacture's Mountain Environment :)

    atv 9.jpg
    atv 7.jpg
    atv 8.jpg
     
    AiKodex likes this.
  11. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    3,819
    Would it be possible to add backwards/forwards tilting to the ATV? I mean when I'm in the air I'd like to give weight to the front with the up key, so that I don't necessarily make a backwards loop that usually happens when I jump.

    A quick FPS Setup would also be nice.

    This asset is soooooo exciting :D
     
    AiKodex likes this.
  12. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    If you leave the accelerator/brakes just before making a jump, the biker will not lean backwards or forwards and stay perfectly still.
    While in air, you can press on the accelerator or brake to lean and tilt the bike backwards or forwards respectively.
    Please tell us if you were able to achieve the desired results.

    Thank you very much! We'll update the asset to have new bikes, new input system and scenes (an FPS setup will be added for the ATV).
     
    Last edited: Sep 4, 2022
  13. Stupeflip

    Stupeflip

    Joined:
    Mar 20, 2016
    Posts:
    10
    Hello,

    Do you know when the new input system will be available ?

    Thank you :)
     
  14. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    Hello,

    We already have the new input system and assets related to it ready. Coupled with this, we'll be releasing a new supermoto bike, improved documentation and FAQs. Apologies for the hold up, we hope to push the new update to the asset store review team within this week. Hopefully, it'll be released this week itself before Saturday. We'll keep you posted through this forum.
     
  15. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    [UPDATED]
    v1.1
    - [New Model] Supermoto bike model with Freestyle and Ragdoll Setup
    - New Input System Compatibility Added
    - First Person View added for the ATV
    - Documentation for New Input System added
    - Updated documentation on how you can add your own bikes
     
    Rowlan likes this.
  16. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    [New Bike Model Preview]
     
    Rowlan likes this.
  17. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    3,819
    NatureManufacture released their new scene Autumn Valley and I just had to mix it with the ATV :)

     
    AiKodex likes this.
  18. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    3,819
    I switched bikes :D

    mc 1.jpg
    mc 2.jpg

    It's sooo much fun to explore with the various kinds of vehicles
     
    MaxKMadiath and AiKodex like this.
  19. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    [Updated]
    - Merge Conflicts with SBP resolved
    - GUIDs changed
    - Namespacing implemented
    - Script names changed
     
  20. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    588
    something wrong with the price i try to buy it for 22 euros without tax when i put it in the cart and go to the check out i get 49 euros for the asset + 22% taxes
     
  21. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    That is quite strange. Not sure why that is happening. Could you try this with the other assets to see if it is particularly for Simple Motocross Physics.
     
  22. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    588
    yeah with every ''special'' discounted asset , i reached out to unity but like usualy they don't do anything or even bother to reply

    Ps: [special discounted i mean if you already bought an asset from same dev]

    seems like it's some kinda bug i will buy it later when the issue will be resolved
     
    Last edited: Oct 2, 2022
  23. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    Sure, no problem. We'll try reaching out to Unity as well to see why they're charging an inflated amount for special discounted items.
     
    blackbird likes this.
  24. vlas17

    vlas17

    Joined:
    Feb 3, 2020
    Posts:
    2
    It would be cool if they gave speed control, that is, they were 1 n 2 3 4 5
    And for the player to change them himself
    Also a clutch for gas supply while driving
    and drift in place
    And strong-willi control so much that it had to be controlled
     
    AiKodex likes this.
  25. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    Sure, so an introduction of gears, clutch, and controlled wheelie. We'll work on bringing this update out.
    Please could you also clarify if you specifically mean a burnout when you say a drift in place?
     
  26. vlas17

    vlas17

    Joined:
    Feb 3, 2020
    Posts:
    2
    Yes,
    It would also be cool to add control of the front brakes and rear
     
  27. MaxKMadiath

    MaxKMadiath

    Joined:
    Dec 10, 2016
    Posts:
    67
    @Xpert3D Do you have or any plan for integration on invector shooter template?
     
  28. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    We are looking into the integration of invector shooter template for SBP although this is an involved process and may take time.
     
  29. MaxKMadiath

    MaxKMadiath

    Joined:
    Dec 10, 2016
    Posts:
    67
    Thanks. Do you have any plan to add ground tire contact effects like particles sands etc?

    Its having Ai options for bike means can add other bike for racing
     
  30. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    Particle effects are easy to implement and Unity has a particle system inbuilt in all the rendering pipelines. Moreover, the texture and the color of the particles needs to closely match the terrain. Unfortunately since we do not include environments with the asset, we may not be including any ground contact effects either. However, if you have any questions about how you can incorporate them into your game, please let us know so we can help you out.
     
  31. unitygnoob008

    unitygnoob008

    Joined:
    Sep 17, 2016
    Posts:
    225
    hello,

    how do we change size and position of wheels and suspension ?

    when i do this to make giant wheels (for testing), the bike slows down and doesnt move,

    which settings can I change to make custom axle/suspension/wheel size with consistent controls left in-tact?

    thank you for your hard work on this asset.

    i am wondering also for your other asset which I may purchase as well.

    i just want to make strange bikes such as big wheel one on the other asset, but mostly wanted to try this one
     
  32. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    This is quite an interesting request and yes, the asset is capable of making bigger wheels and heftier suspension.
    For the video below, we performed the following steps:
    • Scale up the FPhysicsWheel, FWheelVisual and RPhysicsWheel in the editor. (This step will scale up the tires)
    • Change the position of these gameobjects to their desired positions. Make sure to move the main bike body collider up or out of the way.
    • To make the suspensions softer, please decrease the spring values in the Moto Suspension Manager script attached to the main player
    This could be due to the main body collider being inside the scaled up wheel. Please make sure to move the main body collider up.

    Example Video:
     
    unitygnoob008 likes this.
  33. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    [Updated]
    - New Character Model and a new livery for the dirt bike

     
  34. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    588
    please don't forget sound implementations
     
  35. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    Simple Motocross Physics already implements motor sounds that are generated procedurally. Perhaps you meant it only for Simple Bicycle Physics?
     
    blackbird likes this.
  36. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    588
    yeah right !
     
  37. Warsoul

    Warsoul

    Joined:
    Sep 9, 2016
    Posts:
    39
    Which is the last known compatible Unity version for this Asset ?
     
  38. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    The earliest version of the animation rigging package that is fully compatible with the bone rigging for Simple Motocross Physics asset is v1.0.0 which ships with the Unity version 2020.3. Unity versions prior to 2020.3 exhibit a change of the Animation Rigging package from version 1.0.0 to 0.2.7, which is not entirely suitable for the way Motocross Physics asset is designed. Although, there are some workarounds to make it function correctly for Unity Versions earlier than 2020.3 and hence Animation Rigging Package 0.2.7.
     
  39. feirut

    feirut

    Joined:
    Aug 20, 2022
    Posts:
    2
    Hello! I have some issues, hope you could help with these:
    - After i followed the new input system tutorial on the documentation, its giving me these errors, but all the scripts are in there, how to fix these?



    Thanks again, nice asset.

    EDIT: Managed to fix it, now i have some doubts.

    I wanna use my Right Trigger as Run and Left Trigger as Brake.
    Left stick to moving left and right and when it's in the air do a frontflip/backflip, with Back Left Stick as Wheelie, how to do that?
     
    Last edited: Feb 23, 2023
  40. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    We have implemented the New Input Manager Controls which makes it easy to configure controls on any device. Please install the new input manager and take a look at the MotoInputActions file. You can "listen" for controls and map them to the Motorbike Controls.

     
  41. sammygon21

    sammygon21

    Joined:
    Nov 6, 2021
    Posts:
    4
    Getting this compiler error. Please help upload_2023-3-4_19-46-13.png
     
  42. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    Hello, the errors seem to suggest that you have two instances of the same class within the namespace. This is an indicative of a mistaken double/multiple import of the same script.

    Possible causes:
    1) Updating the asset from v1.0/v1.1 to v1.3 directly. There was a change in the name of this script and Unity may not have handled this error through GUIDs. This would have caused a reimport of the same script.

    2) Accidental import of the old script from an old project.

    3) Merging projects with different SMP versions.


    Resolution:
    1) Please delete the ProceduralIKHandler script and replace it with MotoProceduralIKHandler. This can be done by going to the package manager and only selecting the MotoProceduralIKHandler script as import option.

    2) If possible, delete the Simple Motocross Physics folder within the project and reimport it. Alternatively, you could keep the Simple Motocross Physics folder and see if there are any changes when you import the Simple Motocross Physics asset from the package manager. You can then select what you would like to keep in the import window when Unity prompts reimports and replacements.

    Hope this helps.
     
  43. feirut

    feirut

    Joined:
    Aug 20, 2022
    Posts:
    2
    Amazing, what about the camera itself? It seems you cant have full-control of both TPS/FPS one.
    I could modify the bike itself, but the camera seems kinda buggy at the moment, i've been trying for a week changing the code and breaking the asset everytime xD
     
  44. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    Yes, we do think our in-house camera needs work. For more complex camera systems, you could use Cinemachine. It is a free and versatile tool for camera movements and can be found in the Package Manager. It is an easy to use package and we have had a good experience using it. The reason we have not included this in our asset is due to the asset store guidelines and general practices. Since physics is the main focus for this asset, it is usually not recommended to use packages from other domains as this increases the user's project dependencies.

    We can recommend settings that work well with our asset. A basic third person follow with a mouse/controller orbiter using Cinemachine works well. For first person, setting a secondary cinemachine camera as a child of the head game object should suffice as the head movement seems quite realistic by itself. Switching between the camera can be done using the depth feature, just like Unity's cameras. Cinemachine goes a step further to animate the switch using Cinemachine brain.

    So if you like, you could look into this package to have better camera systems.
     
  45. Wun5

    Wun5

    Joined:
    Oct 15, 2021
    Posts:
    7
    Hi
    I have such a question
    How to do front and rear wheel braking?
     
  46. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    As of now, the brakes are applied on both the wheels in an equal amount. We will have to work on the friction model as well to implement front and rear tire slip. We are working on providing this functionality.
     
  47. Wun5

    Wun5

    Joined:
    Oct 15, 2021
    Posts:
    7
    Thanks for the answer
    I'll wait
    But the front brakes have to rely more on inertia, because you have to fly out when braking at high speed
     
  48. Wun5

    Wun5

    Joined:
    Oct 15, 2021
    Posts:
    7
    Thanks to the author for the great support
    24 days from the author no response
    Thank you very much
    Keep it up
     
  49. AiKodex

    AiKodex

    Joined:
    Jan 21, 2021
    Posts:
    272
    Apologies for the lack of communication from our side. We should have indicated earlier that we could not find a way to implement the braking functionality separately for both the wheels.

    We discovered a method to make the front wheel more independent from the rear wheel (both wheels share the same rotation data), but this caused instability and jittering in the joints to the point that the simulation became very unstable.
     
  50. Wun5

    Wun5

    Joined:
    Oct 15, 2021
    Posts:
    7
    Follow the same syntax
    And remove resource-intensive methods