This video is suitable for beginner indie game devs in the Godot Engine version 4. More advanced users can skip around for the vector math explanations. I'll show you how to make elastic-like stretchy limits that have a more natural game feel with simple GDScript code.
This versatile trick in Godot can be used for:
An elastic rope or connector
More natural feeling to a grapple hook
Less predictable monster boundaries
Procedural character animations for reaching out an arm or leg
Much, much more!
In this tutorial, I show you how to:
Place sprites as children of nodes for visualization and debugging
Create an input in the project settings of godot for the left mouse button
Find vectors between objects
Send objects to the mouse
Create forces on RigidBody nodes to push them towards an object
Use linear dampening to make natural limits for object movement
⭐RESOURCES⭐
Github Repository with this project: https://github.com/pierogigon/SimpleS...
Godot docs for vector math: https://docs.godotengine.org/en/stabl...
💜DISCORD COMMUNITY💜
/ discord
Chapters:
00:00 About this Video
00:40 Animated Overview
02:11 Using this for 3D
02:31 Setting up the Scene
04:10 Setting up the Script
05:04 Setting up Debug
06:50 Setting an Input in Godot
07:35 Using a Custom Input in Godot (left mouse button)
08:12 More Debug setup
09:50 Setting up a Rebounding Force
19:04 Testing the Rebounding Force
21:00 Setting up the Linear Damp
23:40 Testing the Linear Damp
25:26 Fixing the Linear Damp
28:59 Final Test
Смотрите видео How to Make Elastic Limits in Godot 4 with GDScript онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Pierogigon GameDev 17 Сентябрь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 79 раз и оно понравилось 6 людям.