Merge pull request #5670 from timoschwarzer/feature/camera2d_limit_smoothing

Add an option to smooth camera limits when camera smoothing is enabled.
This commit is contained in:
Rémi Verschelde 2016-08-30 16:52:55 +02:00 committed by GitHub
commit 9a35ed5d54
3 changed files with 53 additions and 7 deletions

View file

@ -6888,6 +6888,14 @@
Set the scrolling limit in pixels.
</description>
</method>
<method name="set_limit_smoothing_enabled">
<argument index="0" name="enable" type="bool">
</argument>
<description>
Smooth camera when reaching camera limits.
This requires camera smoothing being enabled to have a noticeable effect.
</description>
</method>
<method name="set_offset">
<argument index="0" name="offset" type="Vector2">
</argument>