Loading video...

Video Failed to Load

Go Home

Here's a look at how the mattress physics look using my debug view. A mattress is essentially a 3x5 grid of rigid bodies connected with joints to flex, and then stacked on another grid kinda like 2 pieces of bread, with springs between them for compression

93,905 views • 7 months ago •via X (Twitter)

37 Comments

ivan ceras's profile picture
ivan ceras6 months ago

I replicated your tire using #bevy and #rapier with a little twist (literally).

Walaber's profile picture
Walaber7 months ago

Here’s that wishlist link once again 😇

Kingmakers Game's profile picture
Kingmakers Game7 months ago

Very promising, but I don't get impressed by vehicle physics until I see you hit those rigidbodies while driving at 80mph.

Walaber's profile picture
Walaber7 months ago

good news (for me), the game takes place with a tiny 4x4 in a furniture store, I think the top speed is more like 40mph 😎

孟夏罗兰's profile picture
孟夏罗兰7 months ago

Dude, your wheels look so fun! My own game currently uses ray tracing to simulate contact pressure, and the sliding effect is terrible. Your wheels look perfect.

VibrantBlack's profile picture
VibrantBlack7 months ago

Interesting. Very cool.

3bomb's profile picture
3bomb7 months ago

That rigidbody debugger view really is so cool

lewwy's profile picture
lewwy7 months ago

been watching thr process of this is there gonna be a demo?

Walaber's profile picture
Walaber7 months ago

Most definitely. I also do playtesting throughout development, managed on my discord server.

lewwy's profile picture
lewwy7 months ago

ohh interesting

David's profile picture
David7 months ago

this is epic, can you pls add a bread shader

Tech Ren's profile picture
Tech Ren7 months ago

what a scam i thought you add finite elements or whatever next gen tech. the old school springs and rigidbody never fails. perfect.

Christian | Situation Normal's profile picture
Christian | Situation Normal7 months ago

Looks very cool!!

tarun bana's profile picture
tarun bana7 months ago

Literal wizard.

🍪BiscuitsMx✨'s profile picture
🍪BiscuitsMx✨7 months ago

@JayWeston This is very cool! Is each tyre also a bunch of cubes on springs to give them flex?

Walaber's profile picture
Walaber7 months ago

@biscuitsmitten @JayWeston Basically yes!

Rajesh's profile picture
Rajesh7 months ago

Coolest thing I have seen in a while.

Hakan AKSU's profile picture
Hakan AKSU7 months ago

It looks great.

Tom Langwaldt's profile picture
Tom Langwaldt7 months ago

Love the behind the scenes view! Makes the wobbly physics even more impressive

Ejectgame's profile picture
Ejectgame7 months ago

Game engine ?

Walaber's profile picture
Walaber7 months ago

Godot 4.6

Ejectgame's profile picture
Ejectgame7 months ago

Waho soo cool ! I love Godot

ModelPrint's profile picture
ModelPrint7 months ago

Nice trick on the "soft body"

AnneOnimus's profile picture
AnneOnimus7 months ago

Mattress in last Luigi's Mansion. Great feel too.

cassieopean's profile picture
cassieopean7 months ago

well done!

prison purse's profile picture
prison purse7 months ago

That’s beautiful 🥹

KITA来た's profile picture
KITA来た7 months ago

i dont understand why its not just an array of points? why the rectangles? its not bad its just an interesting solve.

Walaber's profile picture
Walaber7 months ago

The tires need something solid to collide with

KITA来た's profile picture
KITA来た7 months ago

so you are using the collision mesh as the deformation mesh? i dont think thats compute effective but yeah it works.

Troy 🩸 Levantix Game Studio's profile picture
Troy 🩸 Levantix Game Studio7 months ago

@walaber It does feel way too resource intensive but their use case is kinda specific though interesting. What would you use instead? Genuine question haha

KITA来た's profile picture
KITA来た7 months ago

@walaber something 1000x more intensive lol but i feel like you can just cheat it by doing a pre determined squish where the wheel is. it doesnt need to be simulator accurate just look cool.

Walaber's profile picture
Walaber6 months ago

Except when it’s not!

Troy 🩸 Levantix Game Studio's profile picture
Troy 🩸 Levantix Game Studio7 months ago

I love how the characters wiggle in the car hahaha

Nova's profile picture
Nova7 months ago

Intersting😆

Black Krrsantan's profile picture
Black Krrsantan7 months ago

Look cool. Anyone knows how the physics is matched to the mattress? I mean the mattress shape looks smooth but the debug view not. Some interpolation so it matches closely as possible the debug view?

Walaber's profile picture
Walaber7 months ago

The mattress is a skinned mesh so a script associates and updates the bones based on which rigid body it’s “attached” to. Smooth bone weights make it look nice and “mattressy”

Black Krrsantan's profile picture
Black Krrsantan7 months ago

Thank you.

Related Videos