summaryrefslogtreecommitdiffstats
path: root/servers/physics_server_2d.h
diff options
context:
space:
mode:
authorPouleyKetchoupp <pouleyketchoup@gmail.com>2021-11-04 18:12:00 -0700
committerPouleyKetchoupp <pouleyketchoup@gmail.com>2021-11-09 10:29:24 -0700
commit3d1c123d453e53f114d9622bdcc61e30906f828a (patch)
tree82fd8a4aa19cd4208a96fad0caf2ac76a0e763b4 /servers/physics_server_2d.h
parenteb98fd94421b124a5848d7ee6c7ead4337222c6c (diff)
downloadredot-engine-3d1c123d453e53f114d9622bdcc61e30906f828a.tar.gz
Separate space override modes for gravity/damping in Area
Also make inspector clearer for gravity point properties.
Diffstat (limited to 'servers/physics_server_2d.h')
-rw-r--r--servers/physics_server_2d.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/servers/physics_server_2d.h b/servers/physics_server_2d.h
index fec03a8111..2af1b59f18 100644
--- a/servers/physics_server_2d.h
+++ b/servers/physics_server_2d.h
@@ -264,12 +264,15 @@ public:
//missing attenuation? missing better override?
enum AreaParameter {
+ AREA_PARAM_GRAVITY_OVERRIDE_MODE,
AREA_PARAM_GRAVITY,
AREA_PARAM_GRAVITY_VECTOR,
AREA_PARAM_GRAVITY_IS_POINT,
AREA_PARAM_GRAVITY_DISTANCE_SCALE,
AREA_PARAM_GRAVITY_POINT_ATTENUATION,
+ AREA_PARAM_LINEAR_DAMP_OVERRIDE_MODE,
AREA_PARAM_LINEAR_DAMP,
+ AREA_PARAM_ANGULAR_DAMP_OVERRIDE_MODE,
AREA_PARAM_ANGULAR_DAMP,
AREA_PARAM_PRIORITY
};
@@ -287,9 +290,6 @@ public:
AREA_SPACE_OVERRIDE_REPLACE_COMBINE // Discards all previous calculations, then keeps combining
};
- virtual void area_set_space_override_mode(RID p_area, AreaSpaceOverrideMode p_mode) = 0;
- virtual AreaSpaceOverrideMode area_get_space_override_mode(RID p_area) const = 0;
-
virtual void area_add_shape(RID p_area, RID p_shape, const Transform2D &p_transform = Transform2D(), bool p_disabled = false) = 0;
virtual void area_set_shape(RID p_area, int p_shape_idx, RID p_shape) = 0;
virtual void area_set_shape_transform(RID p_area, int p_shape_idx, const Transform2D &p_transform) = 0;