Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

I built a physically based Three.js drifting simulator. Let me explain 👇 #threejs #gamedev

19,576 Aufrufe • vor 7 Monaten •via X (Twitter)

32 Kommentare

Profilbild von Alex
Alexvor 7 Monaten

Making a basic drift behaviour is pretty easy, I explained it several time but here goes the generic -> move the car based on a forward direction inputs rotates the car, the forward direction lerps to the actual car's forward direction, bingo you get an easy drift behaviour !

Profilbild von Alex
Alexvor 7 Monaten

But i want actual car feel, weight, weight balance shift, car tires, slip drift, etc. And for that we have several option : 1. Rapier, issue : rapier struggles with fast moving objects so you easily miss grips. 2. PhysX Nvidia, issue : poor resources online and unmaintained

Profilbild von Alex
Alexvor 7 Monaten

But physics engine has one BIG issue with three.js : They act as a black box, it's a bit complicated to understand the slippiness, and what's exactly happening. Only one solution :

Profilbild von Alex
Alexvor 7 Monaten

So I spent my entire insomnight reading docs, watching videos, understanding how cars works, suspension, acceleration. And I built my own car engine: Here's with a grippy setup. just tweaking values provided the drift simulator

Profilbild von Alex
Alexvor 7 Monaten

only raycast bvh based

Profilbild von Drift, Race, Build -- Defend you home course
Drift, Race, Build -- Defend you home coursevor 7 Monaten

@threejs looks good! yeah rapier isn't great for three.js vehicle physics, a custom solution is much better. Thats where I ended up too.

Profilbild von Synonymous Arts
Synonymous Artsvor 7 Monaten

@threejs I tried building it myself here, it was decent. see: demo here:

Profilbild von chosem 😖
chosem 😖vor 7 Monaten

@threejs never once have i seen basement studio fail at something

Profilbild von Julien Dassonval
Julien Dassonvalvor 7 Monaten

@threejs Wow, that was fast from the moment you mentioned the project. Machine mode 🔥

Profilbild von sumukh
sumukhvor 7 Monaten

@threejs Woww

Profilbild von David Webster
David Webstervor 7 Monaten

@threejs hawt

Profilbild von Cortiz
Cortizvor 7 Monaten

@threejs It's insane how fast you're progressing with your projects, really cool 👏👏

Profilbild von Alex
Alexvor 7 Monaten

@threejs From idea to shipping 👁️👁️

Profilbild von Hardik Gupta
Hardik Guptavor 7 Monaten

@threejs 🐐🐐🐐🐐🐐🐐🐐🐐🐐🐐🐐🐐🐐

Profilbild von Vincent
Vincentvor 7 Monaten

@threejs just with three.js? damn it looks amazing!! reminds me of Drift City lol legend 👏🏼

Profilbild von Stéphane - smo
Stéphane - smovor 7 Monaten

@threejs t'es un malade et j'avais vu passer une approche avec une sphère à la place de la voiture pour simuler la physique drift. ça aurait été moins intéressant ?

Profilbild von Alex
Alexvor 7 Monaten

c’est exactement ça, et c’est beaucoup moins intéressant parce que t’as le contrôle. Le principe même du drift pour avoir expérimenté ça un milliers d’heures en simu, c’est de pas avoir le contrôle et de jouer avec ça T’es en contrôle que quand tu maîtrise l’incontrôlable 😂

Profilbild von Stéphane - smo
Stéphane - smovor 7 Monaten

@threejs Haha tkt gros amateur de drift et tout en VR

Profilbild von Alex
Alexvor 7 Monaten

@threejs Voilaaaa

Profilbild von Rayane
Rayanevor 7 Monaten

@threejs Wow ! Looks good. Btw i saw a plugin for driving game physics, i used the equivalent for my ciws game its jsbsim

Profilbild von Alex
Alexvor 7 Monaten

@threejs Damn, any live example ?

Profilbild von Sebastien-console_buche 🪵
Sebastien-console_buche 🪵vor 7 Monaten

@threejs This is so smooth and clean! Well done

Profilbild von Alex
Alexvor 7 Monaten

@threejs Thanks Seb ! I try too !

Profilbild von Eric
Ericvor 7 Monaten

@threejs epic

Profilbild von Previous Leon
Previous Leonvor 7 Monaten

@threejs This looks so good

Profilbild von Nova
Novavor 7 Monaten

@threejs This looks amazing

Profilbild von Speraccio
Speracciovor 7 Monaten

@threejs Wow so cool! though I do appreciate the craft that goes into getting the drifts right, Inertial Drift has the most dope looking drift animations I can think of

Profilbild von Jos Graas 🇱🇺
Jos Graas 🇱🇺vor 7 Monaten

@threejs Now enable DLSS5, ans you got a triple A game

Profilbild von Pixel Girl™
Pixel Girl™vor 7 Monaten

@threejs NICE!

Profilbild von Amichay Giuili
Amichay Giuilivor 7 Monaten

@threejs I think the missing piece here is good drift sound effects - wonder how you can integrate that into the engine?

Profilbild von lithium534
lithium534vor 7 Monaten

@threejs Where can I play this?

Profilbild von Martin Lorentzon
Martin Lorentzonvor 7 Monaten

@threejs 👀👀👀

Ähnliche Videos