mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Create a rotation arc showing accumulated rotation when using transform gizmo
This commit is contained in:
@@ -296,6 +296,7 @@ private:
|
||||
void _update_name();
|
||||
void _compute_edit(const Point2 &p_point);
|
||||
void _clear_selected();
|
||||
bool _is_rotation_arc_visible() const;
|
||||
void _select_clicked(bool p_allow_locked);
|
||||
ObjectID _select_ray(const Point2 &p_pos) const;
|
||||
void _find_items_at_pos(const Point2 &p_pos, Vector<_RayResult> &r_results, bool p_include_locked);
|
||||
@@ -390,6 +391,13 @@ private:
|
||||
double numeric_input = 0.0;
|
||||
bool numeric_negate = false;
|
||||
int numeric_next_decimal = 0;
|
||||
|
||||
Vector3 rotation_axis;
|
||||
double accumulated_rotation_angle = 0.0;
|
||||
double display_rotation_angle = 0.0;
|
||||
Vector3 initial_click_vector;
|
||||
Vector3 previous_rotation_vector;
|
||||
bool gizmo_initiated = false;
|
||||
} _edit;
|
||||
|
||||
struct Cursor {
|
||||
|
||||
Reference in New Issue
Block a user