From c262589e26a5057e5d161af2961973caaecc1196 Mon Sep 17 00:00:00 2001 From: Luis Lopez Date: Tue, 28 Apr 2020 07:34:27 -0600 Subject: Add rotation smoothing to Camera2D Camera2D has follow smoothing to interpolate towards a target position, but no rotation smoothing to align with the target rotation. This adds rotation smoothing directly into the Camera2D API by having two new properties: - `rotation_smoothing_enabled` - `rotation_smoothing_speed` --- doc/classes/Camera2D.xml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/classes/Camera2D.xml') diff --git a/doc/classes/Camera2D.xml b/doc/classes/Camera2D.xml index a1d24f778d..671ecb6af1 100644 --- a/doc/classes/Camera2D.xml +++ b/doc/classes/Camera2D.xml @@ -150,6 +150,13 @@ The camera's process callback. See [enum Camera2DProcessCallback]. + + If [code]true[/code], the camera's view smoothly rotates, via asymptotic smoothing, to align with its target rotation at [member rotation_smoothing_speed]. + [b]Note:[/b] This property has no effect if [member ignore_rotation] is [code]true[/code]. + + + The angular, asymptotic speed of the camera's rotation smoothing effect when [member rotation_smoothing_enabled] is [code]true[/code]. + If [code]true[/code], the camera smoothly moves towards the target at [member smoothing_speed]. -- cgit v1.2.3