Mario Kart Source

Hello guys, i need help with my car game. im trying to make a game code like mario kart. but i didnt like gear system i want to make a game acceleration and speed like mario kart. but without gears. and full motorTorque without rigidBody torque.

Rigidbody only for turbo.

can u help me? i have one script but i didnt like because is with rigidBody. and so bad.

I’d suggest you use one of the car middleware packages like edy vehicle physics.

Ty for reply. but another options without packages? just i need torque aceeleration

You’ll either have to write one yourself, or use a 3rd party option (usually distributed as a package).

Are you asking us to write you one? Or link you to an already written one? Wouldn’t that technically be the same as a ‘package’?

i have already a code just look the first map.

but my racing code = trash.

i need only acceleration and torque like mario kart but with motorTorque without rigidBody.

Well we’re not going to give you the code, chum. It doesn’t work like that here. You have to show us code you’d like fixed, or be clearer about things. We don’t know where you are in capability or anything.

Just help me on this example:

torque = 250f;
maxTorque = 70f;

motorTorque = Input.GetAxis("Horizontal") * torque / time.deltaTime;

then i want to make good aceleration and torque like mario kart u know mario kart have a good Acceleration and Speed control.

mario kart, mario kart, mario kart

If you say it enough times, the code fairies will come down and gift you with the source code of mario kart… all 11 versions of it.

All version of mario kart have same run

how are you controling your kart trou physics or just transform

WheelColliders

dude you use wheelColiders for making your cart not touching the ground, but you dont controle your cart with them. You artist or programer?

Yes, this Mario Kart:

Has the same “run” as this mario kart:

Why a WheelCollider? WheelColliders are for simulating psuedo-realistic physics for suspension and the sort.

Mario Kart doesn’t exactly shoot for realistic physics and suspension. It’s a twitch arcade game.

You’d be better off with something like CharacterController. Or kinematic rigidbodies.

1 Like

duno in my project i am using real rigidbodys with custom suspension and controls and it works just fine, but yes wheelcoliders sux for arcade

oh thats new for me… i suppuse wheelcollider for run because they have motorTorque then.

show me how u make with another system?

and well i want run like new mario kart.

you artist or programer? or trying both?

all a little.but not much Body rigid or Physics im confused. how i can make that system.

Nobody wants to give you their hard work for free but you can falow simple guidelines. i think eazyer is to just use transfrom.move or somthing like that but if you want to go physics here is a good exaple how to stuff