1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Modify inertia implementation for freelook and orbit

- freelook now uses position based inertia (holding a key for a
   specific time always rults in the same distance traveled independent
of inertia setting)
 - orbit inertia now is angle bases. (not transformation based) ->
   camera always takes the same path.
 - added setting for orbit inertia
 - added setting hints for freelook settings.
This commit is contained in:
toger5
2017-09-06 19:53:00 +02:00
parent 44f12be3f4
commit b1f804094d
3 changed files with 36 additions and 45 deletions

View File

@@ -131,7 +131,7 @@ private:
float gizmo_scale;
bool freelook_active;
Vector3 freelook_velocity;
Vector3 freelook_target_position;
PanelContainer *info;
Label *info_label;
@@ -239,7 +239,7 @@ private:
distance = 4;
region_select = false;
}
} cursor;
} cursor, camera_cursor;
void scale_cursor_distance(real_t scale);