Skip to content

Commit

Permalink
Merge pull request godotengine#10525 from skyace65/PhysicsIntroduction
Browse files Browse the repository at this point in the history
Update Physics introduction images
  • Loading branch information
mhilbrunner authored Jan 19, 2025
2 parents 523369f + 385e1a3 commit af36bb6
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 5 deletions.
Binary file removed tutorials/physics/img/physics_layer_names.png
Binary file not shown.
Binary file added tutorials/physics/img/physics_layer_names.webp
Binary file not shown.
Binary file removed tutorials/physics/img/player_coll_shape.png
Binary file not shown.
Binary file added tutorials/physics/img/player_coll_shape.webp
Binary file not shown.
Binary file removed tutorials/physics/img/player_collision_layers.png
Binary file not shown.
Binary file not shown.
Binary file removed tutorials/physics/img/player_collision_mask.png
Binary file not shown.
Binary file added tutorials/physics/img/player_collision_mask.webp
Binary file not shown.
10 changes: 5 additions & 5 deletions tutorials/physics/physics_introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ These nodes allow you to draw the shape directly in the editor workspace.
the ``Node2D`` scale handles. Scaling a shape can result in unexpected
collision behavior.

.. image:: img/player_coll_shape.png
.. image:: img/player_coll_shape.webp

Physics process callback
~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -132,9 +132,9 @@ These properties can be configured via code, or by editing them in the Inspector

Keeping track of what you're using each layer for can be difficult, so you
may find it useful to assign names to the layers you're using. Names can
be assigned in **Project Settings > Layer Names**.
be assigned in **Project Settings > Layer Names > 2D Physics**.

.. image:: img/physics_layer_names.png
.. image:: img/physics_layer_names.webp

GUI example
^^^^^^^^^^^
Expand All @@ -149,8 +149,8 @@ place each node type in its respective layer using the "Layer" property.
Then set each node's "Mask" property by selecting the layers it should
interact with. For example, the Player's settings would look like this:

.. image:: img/player_collision_layers.png
.. image:: img/player_collision_mask.png
.. image:: img/player_collision_layers.webp
.. image:: img/player_collision_mask.webp

.. _doc_physics_introduction_collision_layer_code_example:

Expand Down

0 comments on commit af36bb6

Please sign in to comment.