Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
409

3D Vehicle Physics Game!

tussiez
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

2 years ago

Voters

Comments

TopNew
1
TroyDrescher
TroyDrescher

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

9 months ago
1
tussiez
tussiez

@TroyDrescher
Not necessary code, I will remove it

9 months ago
1
MrWoodstock
MrWoodstock

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

9 months ago
1
tussiez
tussiez

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

9 months ago
1
MrWoodstock
MrWoodstock

@tussiez
have you figure out the problem out?

9 months ago
1
tussiez
tussiez

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

9 months ago
1
MrWoodstock
MrWoodstock

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

9 months ago
1

Invalid image url

laggy but i can still fly the car

10 months ago
1
1
Whippingdot
Whippingdot

Do you still use replit?

11 months ago
1
tussiez
tussiez

@Whippingdot
Yes, I do! I posted something recently, but it’s been buried in the new Talk :/

11 months ago
1
Whippingdot
Whippingdot

Sadge, you are very good so I encourage you to continue trying lol. Also maybe if you have discord join the server - I joined recently and its really fun and you can promote stuff there! (Why does this sound like an advert lol)

@tussiez

11 months ago
1
snoozyez
snoozyez

car barely moves for me it broken ):

1 year ago
2
tussiez
tussiez

@snoozyez
I apologize for the late reply :/
Thanks for reminding me about this, I tried to fix simulation speed and broke something else in the process.

The car is fixed now, can you test it out?

1 year ago
1
snoozyez
snoozyez

@tussiez

(: it work BEtter now

1 year ago
1
rotorwingtest
rotorwingtest

Really impressed by this.
I tried to make car physics once and eventually gave up.
Coming from someone who driveS a manual transmission, being able to shift gears is cool, but there is no clutch and so the car never stalls. :(

1 year ago
2
tussiez
tussiez

@rotorwingtest
Thank you!
Ha, it behaves more like paddle shifters on automatics

1 year ago
1
rotorwingtest
rotorwingtest

@tussiez
lol. I was just kidding. Even if you controlled the clutch with the mouse it would be almost impossible.
Still just blown away by this. I can't stop zooming in from the side and watching the wheels as I go over things!

1 year ago
1
LordPython404
LordPython404

How do you change it to day?

1 year ago
1
tussiez
tussiez

@LordPython404
Sorry, I was testing headlights and turned off lights. I will add a toggle soon!

1 year ago
Load more