mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Merge pull request #7676 from Varusal/master
This commit is contained in:
committed by
Max Hilbrunner
parent
8c25bbe8b3
commit
b36142bdc8
@@ -297,8 +297,7 @@ the ``_process`` function (make sure it's not indented under the `else`):
|
||||
.. code-tab:: gdscript GDScript
|
||||
|
||||
position += velocity * delta
|
||||
position.x = clamp(position.x, 0, screen_size.x)
|
||||
position.y = clamp(position.y, 0, screen_size.y)
|
||||
position = position.clamp(Vector2.ZERO, screen_size)
|
||||
|
||||
.. code-tab:: csharp
|
||||
|
||||
|
||||
Reference in New Issue
Block a user