added new lesson

This commit is contained in:
ronny abraham 2025-06-12 16:52:29 +03:00
parent 56ee98f4e9
commit 220d2d5fe2
2 changed files with 35 additions and 1 deletions

View file

@ -0,0 +1,34 @@
#+title: Section 05 - Lesson 04 | Physics Nodes Review
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="../../_share/media/css/godot.css" />
#+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

View file

@ -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]]