diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2023-01-29 18:11:41 -0600 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2023-01-29 22:12:00 -0600 |
commit | 79215131b5215c8bf4269e3ac7573639a16295b7 (patch) | |
tree | ded3a4a7fd5c6bdbcb090cd150c7aed1ccb8fb2c /scene/2d/area_2d.h | |
parent | 866e2b95dcedfdc85a2aabe1753af11132bc7f63 (diff) |
Replace Area gravity point distance scale with unit distance
Diffstat (limited to 'scene/2d/area_2d.h')
-rw-r--r-- | scene/2d/area_2d.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/2d/area_2d.h b/scene/2d/area_2d.h index aaf7ea28f8..8f4bbe3219 100644 --- a/scene/2d/area_2d.h +++ b/scene/2d/area_2d.h @@ -51,7 +51,7 @@ private: Vector2 gravity_vec; real_t gravity = 0.0; bool gravity_is_point = false; - real_t gravity_distance_scale = 0.0; + real_t gravity_point_unit_distance = 0.0; SpaceOverride linear_damp_space_override = SPACE_OVERRIDE_DISABLED; SpaceOverride angular_damp_space_override = SPACE_OVERRIDE_DISABLED; @@ -144,8 +144,8 @@ public: void set_gravity_is_point(bool p_enabled); bool is_gravity_a_point() const; - void set_gravity_point_distance_scale(real_t p_scale); - real_t get_gravity_point_distance_scale() const; + void set_gravity_point_unit_distance(real_t p_scale); + real_t get_gravity_point_unit_distance() const; void set_gravity_point_center(const Vector2 &p_center); const Vector2 &get_gravity_point_center() const; |