Using a Polygon2D node to create physics bodies in Godot

Опубликовано: 11 Октябрь 2021
на канале: The Shaggy Dev
14,460
274

In this video, I'll demonstrate how you can use the Polygon2D node to create both static and rigid physics bodies in Godot. This method allows us to create more custom level geometries than we could otherwise get out of a tilemap, but also let's us iterate on designs faster than making an object outside of the editor.

Source code: https://github.com/theshaggydev/the-s...

Transcript: https://shaggydev.com/2021/10/11/poly...

Godot Bordered Polygon2D Plugin: https://github.com/arypbatista/godot-...

Intro: 00:00
The Polygon2D node: 00:51
Project setup: 01:48
The static body scene: 02:26
The rigid body scene: 03:01
Results: 05:00
Final thoughts: 05:22