Загрузка видео...

Не удалось загрузить видео

На главную

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 👀👀👀

Похожие видео