summaryrefslogtreecommitdiff
path: root/scene/resources/height_map_shape_3d.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/height_map_shape_3d.h')
-rw-r--r--scene/resources/height_map_shape_3d.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/scene/resources/height_map_shape_3d.h b/scene/resources/height_map_shape_3d.h
index eda405fc06..1273aee040 100644
--- a/scene/resources/height_map_shape_3d.h
+++ b/scene/resources/height_map_shape_3d.h
@@ -36,11 +36,11 @@
class HeightMapShape3D : public Shape3D {
GDCLASS(HeightMapShape3D, Shape3D);
- int map_width;
- int map_depth;
- PackedFloat32Array map_data;
- float min_height;
- float max_height;
+ int map_width = 2;
+ int map_depth = 2;
+ Vector<real_t> map_data;
+ real_t min_height = 0.0;
+ real_t max_height = 0.0;
protected:
static void _bind_methods();
@@ -51,8 +51,8 @@ public:
int get_map_width() const;
void set_map_depth(int p_new);
int get_map_depth() const;
- void set_map_data(PackedFloat32Array p_new);
- PackedFloat32Array get_map_data() const;
+ void set_map_data(Vector<real_t> p_new);
+ Vector<real_t> get_map_data() const;
virtual Vector<Vector3> get_debug_mesh_lines() const override;
virtual real_t get_enclosing_radius() const override;