Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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

19,576 görüntüleme • 7 ay önce •via X (Twitter)

32 Yorum

Alex profil fotoğrafı
Alex7 ay önce

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 !

Alex profil fotoğrafı
Alex7 ay önce

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

Alex profil fotoğrafı
Alex7 ay önce

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 :

Alex profil fotoğrafı
Alex7 ay önce

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

Alex profil fotoğrafı
Alex7 ay önce

only raycast bvh based

Drift, Race, Build -- Defend you home course profil fotoğrafı
Drift, Race, Build -- Defend you home course7 ay önce

@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.

Synonymous Arts profil fotoğrafı
Synonymous Arts7 ay önce

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

chosem 😖 profil fotoğrafı
chosem 😖7 ay önce

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

Julien Dassonval profil fotoğrafı
Julien Dassonval7 ay önce

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

sumukh profil fotoğrafı
sumukh7 ay önce

@threejs Woww

David Webster profil fotoğrafı
David Webster7 ay önce

@threejs hawt

Cortiz profil fotoğrafı
Cortiz7 ay önce

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

Alex profil fotoğrafı
Alex7 ay önce

@threejs From idea to shipping 👁️👁️

Hardik Gupta profil fotoğrafı
Hardik Gupta7 ay önce

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

Vincent profil fotoğrafı
Vincent7 ay önce

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

Stéphane - smo profil fotoğrafı
Stéphane - smo7 ay önce

@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 ?

Alex profil fotoğrafı
Alex7 ay önce

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 😂

Stéphane - smo profil fotoğrafı
Stéphane - smo7 ay önce

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

Alex profil fotoğrafı
Alex7 ay önce

@threejs Voilaaaa

Rayane profil fotoğrafı
Rayane7 ay önce

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

Alex profil fotoğrafı
Alex7 ay önce

@threejs Damn, any live example ?

Sebastien-console_buche 🪵 profil fotoğrafı
Sebastien-console_buche 🪵7 ay önce

@threejs This is so smooth and clean! Well done

Alex profil fotoğrafı
Alex7 ay önce

@threejs Thanks Seb ! I try too !

Eric profil fotoğrafı
Eric7 ay önce

@threejs epic

Previous Leon profil fotoğrafı
Previous Leon7 ay önce

@threejs This looks so good

Nova profil fotoğrafı
Nova7 ay önce

@threejs This looks amazing

Speraccio profil fotoğrafı
Speraccio7 ay önce

@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

Jos Graas 🇱🇺 profil fotoğrafı
Jos Graas 🇱🇺7 ay önce

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

Pixel Girl™ profil fotoğrafı
Pixel Girl™7 ay önce

@threejs NICE!

Amichay Giuili profil fotoğrafı
Amichay Giuili7 ay önce

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

lithium534 profil fotoğrafı
lithium5347 ay önce

@threejs Where can I play this?

Martin Lorentzon profil fotoğrafı
Martin Lorentzon7 ay önce

@threejs 👀👀👀

Benzer Videolar