正在加载视频...

视频加载失败

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

19,576 次观看 • 7 个月前 •via X (Twitter)

32 条评论

Alex 的头像
Alex7 个月前

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 的头像
Alex7 个月前

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 的头像
Alex7 个月前

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 的头像
Alex7 个月前

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 的头像
Alex7 个月前

only raycast bvh based

Drift, Race, Build -- Defend you home course 的头像
Drift, Race, Build -- Defend you home course7 个月前

@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 的头像
Synonymous Arts7 个月前

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

chosem 😖 的头像
chosem 😖7 个月前

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

Julien Dassonval 的头像
Julien Dassonval7 个月前

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

sumukh 的头像
sumukh7 个月前

@threejs Woww

David Webster 的头像
David Webster7 个月前

@threejs hawt

Cortiz 的头像
Cortiz7 个月前

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

Alex 的头像
Alex7 个月前

@threejs From idea to shipping 👁️👁️

Hardik Gupta 的头像
Hardik Gupta7 个月前

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

Vincent 的头像
Vincent7 个月前

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

Stéphane - smo 的头像
Stéphane - smo7 个月前

@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 的头像
Alex7 个月前

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 的头像
Stéphane - smo7 个月前

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

Alex 的头像
Alex7 个月前

@threejs Voilaaaa

Rayane 的头像
Rayane7 个月前

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

Alex 的头像
Alex7 个月前

@threejs Damn, any live example ?

Sebastien-console_buche 🪵 的头像
Sebastien-console_buche 🪵7 个月前

@threejs This is so smooth and clean! Well done

Alex 的头像
Alex7 个月前

@threejs Thanks Seb ! I try too !

Eric 的头像
Eric7 个月前

@threejs epic

Previous Leon 的头像
Previous Leon7 个月前

@threejs This looks so good

Nova 的头像
Nova7 个月前

@threejs This looks amazing

Speraccio 的头像
Speraccio7 个月前

@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 🇱🇺 的头像
Jos Graas 🇱🇺7 个月前

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

Pixel Girl™ 的头像
Pixel Girl™7 个月前

@threejs NICE!

Amichay Giuili 的头像
Amichay Giuili7 个月前

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

lithium534 的头像
lithium5347 个月前

@threejs Where can I play this?

Martin Lorentzon 的头像
Martin Lorentzon7 个月前

@threejs 👀👀👀

相关视频