Character Body to Rigid Body 3D Physics Interaction | Godot 4 Tutorial

Character Body to Rigid Body 3D Physics Interaction | Godot 4 Tutorial

15.802 Lượt nghe
Character Body to Rigid Body 3D Physics Interaction | Godot 4 Tutorial
The sixth video of a series where we will build an FPS game. This video shows 2 methods of how to get your CharacterBody3D to affect and push RigidBody3Ds in your scene. Call this function on your CharacterBody3D script directly before move_and_slide(): https://gist.github.com/majikayogames/cf013c3091e9a313e322889332eca109 Full Playlist: https://www.youtube.com/playlist?list=PLbuK0gG93AsHID1DDD1nt4YHcdOmJvWW1 GitHub Repo: https://github.com/majikayogames/SimpleFPSController All source code and included assets are licensed under the CC0/public domain license. Dot product interactive web demo used in the video: https://majikayogames.github.io/dot%20product.html Contents of this video: 0:00 - Intro 0:52 - Simple method using collision masks/layers 2:40 - Script method using _push_away_rigid_bodies() function 12:45 - Disabling the moving platform option may make pushing rigid bodies less glitchy 13:25 - Godot jolt alternative/improved physics engine 14:51 - Outro and final thoughts on CharacterBody3D and RigidBody3D interaction If this tutorial helped you, consider supporting the channel on Patreon or Ko-fi: https://www.patreon.com/MajikayoGames https://ko-fi.com/majikayogames