Announcement

Collapse
No announcement yet.

Custom physic vehicle simulation! Project download included.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Custom physic vehicle simulation! Project download included.

    Hi! I made this vehicle class in blueprint for various reasons, watch the video and please tell me what you think of it

    Here is the trailer video =D


    Newest Video:


    Also, feel free to download the project file and have some fun with it!
    If you would like to contribute to this free project, please contact me. I need help making all of this work in multiplayer but any visual improvement is welcome too!

    Forgot to say that the car 3D model come from the internet, I have no idea if it can be used in commercials projects so it would be safe to assume it is not.
    and by the way, if you use this project for a commercial project, after changing the 3D models, credits would be appreciated

    Discord server to discuss the project in real-time with me and everyone else!
    https://discord.gg/CrEvd2z


    Download Version 3.0 (Unreal Engine 4.20)
    Download Version 2.9 (Unreal Engine 4.17)
    Download Version 2.8 (Unreal Engine 4.17)
    Download Version 2.7 (Unreal Engine 4.17)
    Dowbload Version 2.6 (Unreal Engine 4.17)
    Download Version 2.5 (Unreal Engine 4.16)
    Download Version 2.4.2 (Unreal Engine 4.16)
    Download Version 2.4.1 (Unreal Engine 4.16)
    Download Version 2.3 (Unreal Engine 4.16)
    Download Version 2.2 (Unreal Engine 4.15)
    Download Version 2.1 (Unreal Engine 4.15)
    Download Version 2.0 (Unreal Engine 4.15)
    Download Version 1.7 (Unreal Engine 4.14)
    Download Version 1.6 (Unreal Engine 4.14)
    Download Version 1.5 (Unreal Engine 4.14)
    Download Version 1.4 (Unreal Engine 4.14)
    Download Version 1.3 (Unreal Engine 4.14)
    Download Version 1.2 (Unreal Engine 4.14)
    Download Version 1.1 (Unreal Engine 4.14)
    Download Version 1.0 (Unreal Engine 4.14)

    If you have any sugestions for this project I'd like to read them


    Input mapping:

    This vehicle have manual and automatic transmision

    -Throttle : W
    -Brake : S
    -Steering : A D or Mouse X
    -HandBrake : Spacebar
    -Reverse Gear : Right mouse button
    -Change view : V
    -Gear Up : E
    -Geard Down : Q
    -Look Around : mouse X and Y or Arrow keys
    -Get in and out of the car : F
    -Show/Hide Debug Widget : TAB

    Have a good day!
    Save
    Save


    Screenshot of upcoming features!Click image for larger version  Name:	Sans-titre.jpg Views:	2 Size:	171.9 KB ID:	1544553
    Save
    Save
    Save
    Attached Files
    Last edited by JX53mb; 01-12-2019, 10:40 AM.

    #2
    Awesome man. I tried something like this a while back but was never satisfied with how the vehicle felt. It was incredibly bouncy, but yours doesn't seem to suffer from the same problems. I appreciate you uploading the project.

    Comment


      #3
      How customizable is it? From the vid, the car looks to be FWD, can I make it RWD? Also, do I need to remake the car mesh (skeletal mesh) I made for the default system or will it work?

      Does it work at low FPS (10-15)?

      Comment


        #4
        the vehicle in the video is a rear wheel drive, you can see it from the burnout while facing the wall, but you can apply torque to anny of the wheels you want, even apply torque to the left wheels only if you want to xD it is very customizable, and the vehicle body does not have to be a skeletal mesh at all, it can be, but does not HAVE to. I just made a collision mesh inside 3ds max, using the UCX thing. Any mesh you use with the default wheeled vehicle class should work with this class too.

        Comment


          #5
          as for the fps, I dont know, I run the project at 210 fps. if I lower it to 60 fps by activating the V-sync, I do not see any difference in the physic simulation at all. Plus you can always activate physic substepping wich is turned off right now as it is not needed.

          Comment


            #6
            Originally posted by Feuern_D View Post
            Awesome man. I tried something like this a while back but was never satisfied with how the vehicle felt. It was incredibly bouncy, but yours doesn't seem to suffer from the same problems. I appreciate you uploading the project.
            Where you able to open the project without problems?

            Comment


              #7
              Originally posted by JX53mb View Post
              Where you able to open the project without problems?
              Yeah it opened fine, it runs at 120 FPS, my max FPS the Editor will allow, which is normal for the titan x on my work computer and my GPU at home is a 1080 so I can't really test it's performance. The only thing that doesn't run good on these cards is Forza Horizon 3. I'll keep messing with it, I moved the camera over to be centered on the vehicle as the offset felt a little weird, and added controller support to it. I need to test the reaction whenever 2 wheels overlap next.

              Comment


                #8
                The manual switching requires 2 clicks for a gear change? you should switch it to AWSD control and space for the brakes.
                Otherwise great project!

                Comment


                  #9
                  Originally posted by Vollgaser View Post
                  The manual switching requires 2 clicks for a gear change?
                  Well, one to shift up and one to shift down, I want to make an automatic transmision later tho.

                  Originally posted by Vollgaser View Post
                  you should switch it to AWSD control and space for the brakes.
                  You can change the controls to wathever you like I am personally going to map them to a controller.

                  Comment


                    #10
                    Love it!
                    A bit tricky to get used to the manual gearbox, but overall the behavior is great.

                    Wanted to ask about customization settings such as acceleration, top speed, steering curve, etc. but found them already - all neatly grouped in the "Setup" category in the variables.

                    Q: What is "Fake Wheels Min Ang Vel"?

                    As for bugs/troubles/crashes - none so far.
                    [Marketplace] Loading Screen System (ᴘʀᴏᴘᴇʀ ʟᴏᴀᴅɪɴɢ sᴄʀᴇᴇɴs, ɴᴏᴡ ᴡɪᴛʜ ᴘʀᴏɢʀᴇss ʙᴀʀs)
                    [Free][Script] Automate Download of Mixamo Animations
                    [VłĐɆØ] Performance: BP vs C++ vs Blueprint Nativization

                    Comment


                      #11
                      Originally posted by Hoaxx View Post
                      Q: What is "Fake Wheels Min Ang Vel"?
                      Well you know what the fake wheels does, right? The "Fake Wheels Min Ang Vel" Is how much angular velocity the fake wheels can have under zero. For when the car is going fast on reverse if you set this to zero, you will notice that the wheels won't seem to spin anymore while driving backward.

                      (this variable was removed, I now use the "Fake wheels Max Ang Vel" multiplicated by -1 for the minimum instead of a second variable, It was pretty misleading)

                      And thanks for the feedback ^^ I did some adjustment to the project and will post a verssion 1.1 very soon
                      Last edited by JX53mb; 11-27-2016, 12:12 AM.

                      Comment


                        #12


                        little bit of improvement, better control of the car, steering wheel actually steering, glass material, some lights, and few clean-ups of the blueprints.

                        If you want to contribute to this project just message me and of course, please let me know what you think of this project and how I could further improve it.

                        download link is in the first post.

                        Have a good day!

                        Comment


                          #13
                          Would love sample setups for front and all wheel drive.
                          I tried setting up 4-wheel drive, but the steering got pretty sensitive.

                          "what the fake wheels does" - could you elaborate on this?
                          [Marketplace] Loading Screen System (ᴘʀᴏᴘᴇʀ ʟᴏᴀᴅɪɴɢ sᴄʀᴇᴇɴs, ɴᴏᴡ ᴡɪᴛʜ ᴘʀᴏɢʀᴇss ʙᴀʀs)
                          [Free][Script] Automate Download of Mixamo Animations
                          [VłĐɆØ] Performance: BP vs C++ vs Blueprint Nativization

                          Comment


                            #14
                            the fake wheels are only for esthetic purpose, there are the physical wheels that are used in the simulation, they are invisible because they spin too fast and it make them VERY glitchy, So I place these fake wheels without any collisions, to be seen instead of the actual wheels that are doing all the job. the only difference is I clamp the angular velocity of the fake wheels to a value that won't make them glitch out

                            Comment


                              #15


                              Little update to add damping to the suspension and a different acceleration curve for every gear
                              Also quite a bit of clean-up in the blueprint again to make it easier, like tooltips for the variable and such.

                              Download in the first post version 1.2.

                              As usual, let me know what I could still improve as I don't really see anything to add right now x)

                              Comment

                              Working...
                              X