Skip to content

Commit

Permalink
Merge pull request #10032 from Calinou/instancing-physicsmaterial-unique
Browse files Browse the repository at this point in the history
Tweak note about making Physics Material unique in Creating instances
  • Loading branch information
mhilbrunner authored Oct 2, 2024
2 parents 4a5dc31 + a9a2cd1 commit a0a61dc
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions getting_started/step_by_step/instancing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Let's try this. Double-click ``ball.tscn`` in the FileSystem to open it.

.. image:: img/instancing_ball_scene_open.webp

Select the Ball node. In the Inspector on the right, click on the PhysicsMaterial
Select the Ball node. In the Inspector on the right, click on the PhysicsMaterial
property to expand it.

.. image:: img/instancing_physics_material_expand.webp
Expand Down Expand Up @@ -156,14 +156,17 @@ property to the value in the saved scene.

Rerun the game and notice how this ball now falls much faster than the others.

.. note:: You may notice you are unable to change the values of the ``PhysicsMaterial``
of the ball. This is because ``PhysicsMaterial`` is a resource, and needs
to be made unique before you can edit it in a scene that is linking to its
original scene. To make a resource unique for one instance, right-click on
it in the Inspector and click Make Unique in the contextual menu.
.. note::

Resources are another essential building block of Godot games we will
cover in a later lesson.
You may notice you are unable to change the values of the PhysicsMaterial
of the ball. This is because PhysicsMaterial is a *resource*, and needs
to be made unique before you can edit it in a scene that is linking to its
original scene. To make a resource unique for one instance, right-click on
the **Physics Material** property in the Inspector and click **Make Unique**
in the context menu.

Resources are another essential building block of Godot games we will cover
in a later lesson.

Scene instances as a design language
------------------------------------
Expand Down

0 comments on commit a0a61dc

Please sign in to comment.