summaryrefslogtreecommitdiffstats
path: root/editor/plugins/gizmos/collision_shape_3d_gizmo_plugin.h
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-01-09 02:35:27 +0100
committerkobewi <kobewi4e@gmail.com>2023-08-03 14:09:10 +0200
commit0a9a8c75fae450997f3b690fa779c9005748a943 (patch)
tree7f9b8febd5acababfaff108dc1842dc703b031cf /editor/plugins/gizmos/collision_shape_3d_gizmo_plugin.h
parent237bd0a615df8a0e57bc3d299894abece7b43a0c (diff)
downloadredot-engine-0a9a8c75fae450997f3b690fa779c9005748a943.tar.gz
Improve editing of box collision shapes
Diffstat (limited to 'editor/plugins/gizmos/collision_shape_3d_gizmo_plugin.h')
-rw-r--r--editor/plugins/gizmos/collision_shape_3d_gizmo_plugin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/gizmos/collision_shape_3d_gizmo_plugin.h b/editor/plugins/gizmos/collision_shape_3d_gizmo_plugin.h
index 520295a522..6b7740de2f 100644
--- a/editor/plugins/gizmos/collision_shape_3d_gizmo_plugin.h
+++ b/editor/plugins/gizmos/collision_shape_3d_gizmo_plugin.h
@@ -36,6 +36,9 @@
class CollisionShape3DGizmoPlugin : public EditorNode3DGizmoPlugin {
GDCLASS(CollisionShape3DGizmoPlugin, EditorNode3DGizmoPlugin);
+ Transform3D initial_transform;
+ Variant initial_value;
+
public:
bool has_gizmo(Node3D *p_spatial) override;
String get_gizmo_name() const override;
@@ -44,6 +47,7 @@ public:
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id, bool p_secondary) const override;
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id, bool p_secondary) const override;
+ void begin_handle_action(const EditorNode3DGizmo *p_gizmo, int p_id, bool p_secondary) override;
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, bool p_secondary, Camera3D *p_camera, const Point2 &p_point) override;
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, bool p_secondary, const Variant &p_restore, bool p_cancel = false) override;