Godot 4: Character to Rigid Body Interaction

preview_player
Показать описание
A common question: how to handle interaction between a character body and a rigid body. Works in 2D and 3D.

Text version and link to code:

Want to learn Godot 4? Check out my new book, Godot 4 Game Development Projects.

Рекомендации по теме
Комментарии
Автор

Love how he just casually talks like it’s the next video from yesterday or something

Alexander-dieb
Автор

For real! Best teacher ever. So glad to see you back! Oh, and I just preordered your book, looking forward to it

chrisfritz
Автор

I couldn't believe you're back!! Thank you for another great tutorial!!

vasarolnik
Автор

I'm so happy to have you back! welcome

sanyi
Автор

Thank you for this video. Good length. Straight to point and crystal clear explanation.

Ramontique
Автор

Bro, I saw your new book that releases Aug 11. Can't wait.

VaporCode
Автор

I'm just starting game development after many years of working as a software engineer, and I have to thank you for such good videos! The best content I found!

buzzifilho
Автор

An issue I had was my player was being pulled by whatever rigidbody2d they were pushing. Turns out it was caused by the Moving Platform settings on the CharacterBody2D. Disabling the layer which has the rigidbody2ds that were being pushed from being included in the Moving Platform settings, or changing the On Leave option from Add Velocity to Do Nothing, fixed this.

robkiller
Автор

Hapy to see your channel revive on this wave of migrations to Godot! :D

vintprox
Автор

This works beautifully for my 3D character controller! Thank you!

AntonioRColon
Автор

So simple yet so effective, thank youuu

wausin
Автор

Welcome back! Thanks for making this video 🙏

bitdev
Автор

Thank you for the video. However, I have a question. Why is my player getting pushed back by the box every time it collides? Also my player doesn't moves smoothly everytime it collides. Any help would be greatly appreciated. Thank you.

InternetMenace
Автор

Dude, this was cracking my head for months.

ПриветТыпосмотрел
Автор

Soooo excited you are back for Godot 4

realdanielpeach
Автор

Is there a way to do the reverse, so that your character body can be pushed by physics objects as well?

derekw
Автор

Thank you, I couldn't find the answer to this anywhere

stone_pilot
Автор

i don't have apply central impulse

techstack_yt
Автор

I've been trying to solve this for too long now
thank you

vudjubuh
Автор

Great video!! Please do a video on the NavigationObstacle2D in Godot 4!

zZMazeZz