Skip to content
← Back to Community
3D Vehicle Physics Game!
Profile icon
tussiez

3D Car Physics Demo

Drive cars in this vehicle physics game.

Play PhysicsAgain

Features

  • 3D physics!
  • Vehicle with realistic suspension
  • Terrain with basic obstacles and interactive objects
  • Automatic and manual transmission with realistic shifting
  • Headlights, fog lights, brake lights, turn signals, and reverse lights
  • Day/night toggle
  • WebAssembly optimization
  • Engine sounds

Inspired from ammo.js sample vehicle.

You can use the vehicle generator used in this game.

Controls

W, A, S, D moves the car, or arrow keys
Press "Sun" to toggle the Sun.
Press "Change Car" to toggle between minivan and original vehicle.
Press Z to toggle left turn signal, and C to toggle right turn signal.
Hold Shift to brake. Once the vehicle comes to a stop, the vehicle will stay stopped until the accelerator is pressed.
Press H to toggle the headlights.
Click and drag to look around.
Got stuck? Press V to flip.

Drive in Manual

Click "Automatic Transmission" to switch modes.

  • Press E to shift up.
  • Press Q to shift down.
  • Press R to toggle neutral.

Enjoy!

The Minivan

image

Minivan 2

image

Night Driving
ezgif.com-gif-maker (38)
Original Vehicle
image

Last Updated: 2/1/2022

Voters
Profile icon
DaCuteRaccoon
Profile icon
LukeMartinez2
Profile icon
MrWoodstock
Profile icon
MrRed307
Profile icon
BrandoTaylor
Profile icon
mooteo
Profile icon
CY8379898
Profile icon
IRcodez
Profile icon
Bush14
Profile icon
jnrocwobdmqkz
Comments
hotnewtop
Profile icon
OldWizard209

First thing I saw was this:
image

VEGETEABLES!!!

nah man I m out

JK lol, noice game with noicer physocs
Profile icon
tussiez
Profile icon
Wilke000

WHY DOES THIS HAVE SOOOO MANY UPVOTES, AND ONLY HAVE TWO REPLYS!!!????? @OldWizard209

Profile icon
tussiez

@Wilke000 I have no idea

Profile icon
OldWizard209

bruh @Wilke000 , IDK why, maybe people like the comment, so they just upvote. Doesn't mean that if you upvote, you_have_ to comment.....

Profile icon
Wilke000

Maybe @OldWizard209... I have said that before so...

Profile icon
[deleted]

@OldWizard209 the grass is a picture

Profile icon
firefish

WHY DOES THIS HAVE SOOOO MANY UPVOTES, AND ONLY HAVE TWO REPLYS!!!????? @OldWizard209

@Wilke000 wat

Profile icon
Wilke000

Yeah, well @firefish.................. It had 2 comments........... so........ yeah.......

Profile icon
firefish

@Wilke000 oh i thought it said repls not replies oh dummy me

Profile icon
tussiez
Profile icon
Wilke000

@firefish:

oh dummy me
Hmm.... mmm, hm.... hmmmmmmmmmmmm
Ok, I think that you are overreacting, you are a good coder.

Profile icon
Rebelthunder

@tussiez I think you should make this 4x4 because this keeps flipping over whenever I hold boost.

Profile icon
[deleted]
Profile icon
tussiez

@Rebelthunder I think it is 4x4

Profile icon
tussiez
Profile icon
Rebelthunder956

@tussiez is it? cause it works better in reverse, so that's making me think that it's rear wheel drive.

Profile icon
Rebelthunder956

also, this is my alt account.

Profile icon
tussiez

@Rebelthunder956 Huh.. must be the physics engine

Profile icon
tussiez
Profile icon
OldWizard209

@Rebelthunder956 @tussiez @adilskillz and @Wilke000 can you guys stop replying to this thread. You are clogging my notifications and my e-mail...

Profile icon
tussiez

@OldWizard209 Yikes! Sorry, my email is spammed too

Profile icon
[deleted]

ImOof

Profile icon
Wilke000

Oh lol ok @OldWizard209 I know how it feels...........

Profile icon
JWZ6

@Wilke000 ok boomer lol

Profile icon
OldWizard209

Yeah but it still continues... @Wilke000

Profile icon
[deleted]

Because he's a god at coding.

Profile icon
ninjaread99

whoever said i would love holding v... you were... not wrong...

Profile icon
tussiez
Profile icon
Rebelthunder

@tussiez could you also try to change the code a bit so that u can move when flying with "v"?

Profile icon
tussiez

@Rebelthunder It was originally intended to flip :D

Profile icon
ninjaread99

@tussiez i know

Profile icon
LaneMartin

Let's pay respects to the people who play this game without a mouse (touchpad users I understand your suffering)

Profile icon
tussiez
Profile icon
Botmakerguy
Profile icon
Rebelthunder
Profile icon
LaneMartin
Profile icon
LaneMartin

@Botmakerguy Doofenshmirtz Evil Incorporated!!!

Profile icon
LaneMartin

@LaneMartin i use mouse so no f fur me lol

Profile icon
tussiez
Profile icon
LaneMartin
Profile icon
videogamehover

mum, can we get forza?
no we have forza at home
forza at home:

(its really good btw, keep up the great work!)

Profile icon
tussiez

@videogamehover
Hah, don't make me laugh in class :D
Thanks!

Profile icon
ProCatGuy

YAY! (Usually happens when there is a server involved)
image

Profile icon
tussiez
Profile icon
ProCatGuy

@tussiez You can always tell if it is a good game from the code and reviews.

Profile icon
tussiez
Profile icon
Botmakerguy

@AndrewMarkarian oh that sucks

Profile icon
ProCatGuy

Now I know why I keep getting a cycle a day.

Profile icon
IRcodez

f in chat for this guy

Profile icon
Bookie0

Screen Shot 2021-03-27 at 12.31.43 PM

Oh...oh no..uh oh..whoops.

Profile icon
tussiez

@Bookie0
Press F

Profile icon
Bookie0

@tussiez ah! problemo solved!

Profile icon
tussiez
Profile icon
Bookie0
Profile icon
firefish

@Bookie0 When you're sideways just fly to Mars. (a.k.a. hold v)

Profile icon
Bookie0
Profile icon
IRcodez
Profile icon
tussiez

@IRcodez I. AM. SPEED

Profile icon
OldWizard209

NGL, this seems to be an accurate representation of what the Mars Rovers will being doing secretly out there...

Profile icon
tussiez

@OldWizard209 Evil scientist laugh

Profile icon
SleepySid
Profile icon
JamshedAkbari

the 3d grass is actually amazing, with the light reflection it looks so good and the car suspensions arer also great for having fun. grate work !!!

Profile icon
tussiez
Profile icon
cgcgcgcgcg

it could have a better car but apart from that it is a very good game

Profile icon
tussiez
Profile icon
tussiez

@cgcgcgcgcg After seven months, the car is finally better.

Profile icon
Unclyscam123

noce

Profile icon
tussiez

@Unclyscam123 lipsmack

Profile icon
[deleted]
Profile icon
Grifano

O, you’ve used a more than one h1, for this project it’s not important, but in a future you can’t actually use more than one h1 on a page 😉

Profile icon
tussiez

@Grifano Where did you learn that? You can use any many <h1>s as you need. There is no limit to how many of an element you can use on a page. In this case, it makes it easier to create big text. This is just like saying <div>s can only be used ten times, lol

Profile icon
Grifano
Profile icon
tussiez

@Grifano Not good practice, not that anything will break

Profile icon
sojs

Yes. Another problem is with SEO optimization but this should be fine. I usually do h6s with a class of h1 wich
looks excactly like and h1, but does not act like one. Im not excactly sure that a screenready would work with this site tho, its all [email protected]

Profile icon
xxpertHacker

@tussiez Well you can use more than one html tag too:

<html> <html> ... </html> </html> <html> ... </html>
Profile icon
tussiez

@xxpertHacker aaaaaaaaa

Profile icon
xxpertHacker

@tussiez Lol, the empty Repl has it's head in it's body.

Profile icon
tussiez

@xxpertHacker Chrome does this automatically iirc, so I decided to

Profile icon
xxpertHacker

@tussiez Wdym Chrome does this automatically?

Any references?

Profile icon
tussiez

@xxpertHacker Put <head> outside of <body> and look in Inspect

Profile icon
xxpertHacker

@tussiez Yeah no, Chrome just attempts to correct your bad HTML.

<head> outside of <body>:

html head body

head-outside-of-body

<head> in <body>:

html body head

head-in-body

But even if Chromium did it, you wouldn't be considering other browsers, such as Firefox, or Safari :/

Profile icon
tussiez

@xxpertHacker No idea, it was just a habit I developed after seeing Chrome put it in(???) somehow

Profile icon
firefish

@sojs Ah yes, SEO optimisation. Search Engine Optimisation Optimisation.

Profile icon
firefish

@Grifano Why H2 exists?

Profile icon
firefish

@tussiez Well, this is the only reason why Ace is a good thing to use.
Screenshot_20210331-085703

Profile icon
tussiez
Profile icon
tussiez

@firefish SEO Optimization

Profile icon
tussiez

@firefish

..

Profile icon
firefish

@tussiez
SEO Optimisation is Search Engine Optimisation Optimisation.
PIN Number is Personal Identification Number Number.
You are repeating the last word in the acronym.

Profile icon
tussiez

@firefish PIN Number..

Profile icon
sojs

ahh yes. the real secret to getting higher up on search engine results. @firefish

Profile icon
tussiez

@sojs Optimize the optimizer.

Profile icon
GingerIndustries

@tussiez wouldn't that make you...
Search Engine Optimization Optimization Optimizer

Profile icon
sojs
Profile icon
tussiez

@tehgingergod I am the

Profile icon
LaneMartin

@xxpertHacker lol head in body

Profile icon
LaneMartin

@tehgingergod yessiree

Profile icon
ErinPark5

Hey:) You did good.... Nice!

Profile icon
tussiez

@ErinPark5 Thanks!

Profile icon
ErinPark5

@tussiez Of course! If you want more please contact me for more games. If you want directions to make awesome/new games ask me too.. Thanks a lot:)

Profile icon
SleepySid

car go Brrrrrrrrrrrrrrrrrrrrr

image

Profile icon
tussiez
Profile icon
Baconman321

Suddenly I realize.... this looks like Jailbreak keybindings!!!

:sus:

Profile icon
tussiez

@Baconman321
Dang it. Ya got me again. >:( >:(
I did use Jailbreak keybinds..

Profile icon
Baconman321

@tussiez Space would be better for break (it's more well known), as well as shift for the boost.

Vehicle simulator has the above mentioned keybindings for their game.

Also...

wanna work on sortacraft? (IK it's a bad post to ask on but whatever)

Profile icon
tussiez

@Baconman321

  1. Meh, it's just a demo, this can be easily changed (or become an option!) in the future

  2. Hmm

Profile icon
violetmint

i found a glitch where you keep pressing v you fly into the sky you cant move around tho

Profile icon
tussiez
Profile icon
violetmint

ok just letting you know! @tussiez

Profile icon
programmeruser
Profile icon
tussiez
Profile icon
Whippingdot

bruh hold v. Then the REAL magic starts @MargaretGilbert

Profile icon
violetmint
Profile icon
tussiez
Profile icon
violetmint
Profile icon
Rebelthunder956
Profile icon
LukeWright

This reminds me of robocraft back when it was good. also, why are the brakes on the front wheel instead of the back?

Profile icon
tussiez

@LukeWright It flips too hard when I set it to the back wheels

Profile icon
tussiez

@LukeWright [removed lol]

Profile icon
[deleted]

Great Work bro 👍

Profile icon
tussiez

@ROHITBB Thank you!

Profile icon
brucelk

if you spam v after you drive off the edge and spawn again then you can slowly glitch upwards.

Profile icon
tussiez

@brucelk Weeee

Profile icon
Unclyscam123

people save your updotes for sortacraft 2!!!

Profile icon
tussiez
Profile icon
BillNyeScience
Profile icon
tussiez

@BiIINye trucc

Profile icon
pythongeek1010

Wait, uh oh.. whoops. Sorry for breaking your car!
Screenshot 2021-04-03 120721

Profile icon
LaneMartin

@pythongeek1010 press V to flip bak up

Profile icon
pythongeek1010

@LaneMartin I know, it's just funny...

Profile icon
LaneMartin
Profile icon
tussiez
Profile icon
PYTHORE3605

Dang it, you cant drift... It flips your car.

Profile icon
tussiez
Profile icon
Wilke000

ARROW SUPPORT PLEASE!!!! WSAD IS SOOOOOOOOO HARD FOR ME!!!!!!

PLS DO IT
Profile icon
firefish

@Wilke000 haha l'é

Profile icon
Wilke000

What @firefish ? Does that mean

Profile icon
firefish

@Wilke000 oh no i revealed the true power of the accented é... you saw nothing

Profile icon
Wilke000

@firefish sus

@firefish has been ejected (Imposter)

Profile icon
tussiez
Profile icon
kwe

mm myes epic car

Profile icon
tussiez

@kwe epic pog

Profile icon
eleazarfolabit

This is really cool hope to see a full version

Profile icon
tussiez

@eleazarfolabit Yeah, working on it rn!

Profile icon
Atias

Nice

Profile icon
tussiez

@Atias Thanks!

Profile icon
TroyDrescher

I keep getting an error 404 for a file map.perlin.js when I try and load the site

Profile icon
tussiez

@TroyDrescher Not necessary code, I will remove it

Profile icon
MrWoodstock

for some reason the 3d car will not load for me because it keeps get stuck on the loading model

Profile icon
tussiez

@MrWoodstock Huh. Check the console for errors. I’ll look into it soon.

Profile icon
MrWoodstock

@tussiez have you figure out the problem out?

Profile icon
tussiez

@MrWoodstock Sorry, repl.co is blocked in school for me :/ will check at my earliest convenience

Profile icon
MrWoodstock

@tussiez it is all right, there is no rush anyways

Profile icon
IRcodez

add a rat rod

Profile icon
tussiez
Profile icon
IRcodez

This file cannot be displayed:
laggy but i can still fly the car

Profile icon
tussiez

@IRcodez A classic feature