[Free] Arcade Car Physics

Arcade Car Physics

Arcade car physics is a set of scripts and prefabs made to help you add cars, tanks, truck or any type of wheel vehicle to you game. You can use one of the four prefabs to add some gameplay to your prototype or test a feature but the scripts are also customizable enough through the inspector to be used on a full race game.

Asset store page
Extended version store page

Demo builds
you can find demos here:
http://saarg.me/acp/2.0/Demo_Windows.zip
http://saarg.me/acp/2.0/Demo_Mac.app.zip
http://saarg.me/acp/2.0/Demo_Linux.zip
you can find a webgl demo here: Unity WebGL Player | Arcade_Car_Physics

Screenshots



The car models are made using asset forge and kenney’s collectio


n of free assets.

Tutorial

Github page

6 Likes

Any video of the assest in action??

I’ll consider making a video soon but I’d recommend testing the demo scene or autober as it’s difficult to get a feel of the gameplay from a video.

1 Like

As suggested I’ve added a demo video and took some time to make a demo build you can find here:

The demo builds have the proper input to be used with a controller and I highly recommend using a controller.

I haven’t tested the mac build as I don’t have one.

1 Like

Been playing around with this, it’s pretty good!

Looking to integrate a top down fixed approach where the car drives the direction you’re pointing. So if the car is facing up and you hold the ā€œDā€ key or right arrow key it will turn and drive to the right side of the screen. Have you implemented something like this or know of what might be the best approach?

Thank you!

Hey maxaud,

I haven’t tried to use my asset for a top down controller but if you uncheck isPlayer it will stop listening to inputs and you can write your own controller as I believe I’ve left access to Throttle and Steering from script. I think the current version might be missing access from scripts to Drift but this is coming in the next update.

Maybe we can work something together and have it in a future update.

1 Like

I love the physics! Just waiting for the fix for the multiple Controllers and I will gladly pay to get this package if there is an upgraded pack coming out.
The issue: Jump, boost etc. is not isolated to one player. All the players jump if I am pressing jump.

Hi ZpetsnaZ, not sure why my code would make all cars jump with the same input but I guess it’s probably that you either have the same inputName for all players or your inputs in Unity’s input manager isn’t configured right.

Feel free to send me a link to you project in private if you want me to check it out.

Thanks for this! Do you think this could be a good starter for implementing ridge racer style arcade racers, or are they a very different beast? (certainly accurate physics seem a little unconductive to the whole ā€˜rail drifting’ thing)

Hi,
You definitely can use this asset to do something similar if you are willing to deal with the physics of the car but a physics based gameplay like the one here will feel sloppy from what I think you mean by ridge racer game.
You’ll for sure have to work on the drifts.

I’d say you’ll have more success with something else that’s not using Unity’s wheel colliders

Do you know how the driving physics work in those games actually works? I’m quite familiar with the physics sim-style racers (at least the theory behind them, if not how they are implemented in practice), but can’t really find a good starting point for other styles.

Sorry I can’t help you on this I only worked on physics driven vehicles.

Thank you for this beautiful asset! Unfortunately I’m having trouble with the speed, it goes negative when I press play (I’m on the demo scene), I selected one car to play but it still doesn’t work. Which variables should I change?

I’m guessing something on your inputs needs to be changed have a look at the inputs name in the cars and make sure it matches input in your project input manager.

It’s also possible you have a controller plugged in that’s sending ghost inputs.

1 Like

The compiled demo works great! Love the feel of the cars and am trying to use it in a simple game.

I can make the vehicle turn, jump, and turn the boost on, but cannot accelerate. The Up arrow and W will cause the throttle value to increase but the vehicle will not move. Any idea what the cause may be?

you probably left the handbrake to true

Hey, I think your asset is really awesome! I’m trying to make a simple AR game now, but need to scale down the cars (because they appear 1:1, while I rather use toy cars).
Scaling makes the physics behave weirdly, do you know what I should check when scaling the cars down? (to about 1:10)
PS: I also had the handbrake problem, ā€œsolvedā€ it by removing it from the script. I couldn’t find out why it kept being activated.

Hi, I have to admit that the cars don’t really scale as well as I’d like. I had a go at scaling up the car the other day for someone else and you can scale them as long as you also scale the motor torque and brakes too, the behavior changes a bit but it stays pretty close.

I’d try the same when scaling down but if you scale down a lot I’d expect some weird behaviors from the wheelcolliders. My advice would be to scale the world up instead of scaling the cars down that would also make everything easier to work with in the editor imo.

I just published an update fixing some issues and added a paid extension with prefabs for bikes, tanks or drift cars: Arcade car physics extended | Physics | Unity Asset Store

Hi @saarg ,
I want to test drift physics on the extended version before decide buy it or not, how i can test it ?