diff --git a/_subsections/sec05/lesson-04.org b/_subsections/sec05/lesson-04.org new file mode 100644 index 0000000..ddb38a0 --- /dev/null +++ b/_subsections/sec05/lesson-04.org @@ -0,0 +1,34 @@ +#+title: Section 05 - Lesson 04 | Physics Nodes Review +#+HTML_HEAD: +#+OPTIONS: H:6 + +* Links +- [[../../toc.org][TOC - Godot Notes]] +- [[https://www.udemy.com/course/jumpstart-to-2d-game-development-godot-4-for-beginners/learn/lecture/49010953?start=0#overview][S05:L04 - video]] + +* Notes +** Physics2D Nodes +- StaticBody2D :: useful for floor and walls +- CharacterBody2D :: characters + - set velocity + - physics collisions + - scripting +- AnimatableBody2D :: moving platforms and doors +- RigidBody2D :: objects that have gravity and can be pushed by other objects + - set force or impulse to it + - e.g. thrust for rocket, tennis ball hit by racket + +** how it works +- we do not control position, the engine does +- we supply velocity or force +- engine calucates where we go and speed / position + +** Area2D vs Physics2D +*** similarities +- has one or more CollisionShape2D +- Sprite2D + +*** differences +- much easier on calculations +- checks if one shape overlapping another +- Area2D is much more inaccurate in collisions diff --git a/toc.org b/toc.org index 8871f1f..5eb3b42 100644 --- a/toc.org +++ b/toc.org @@ -38,5 +38,5 @@ ** Section 5 - Tappy Plane! #+attr_html: :class contents-overview +- [[./_subsections/sec05/lesson-04.org][Lesson 04 | Physics Nodes Review]] - [[./_subsections/sec05/lesson-06.org][Lesson 06 | Plane Movement]] -