summaryrefslogtreecommitdiffstats
path: root/servers/physics_2d/collision_object_2d_sw.h
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-01-28 01:34:26 -0500
committerAaron Franke <arnfranke@yahoo.com>2021-01-28 18:15:42 -0500
commitcb9fc117d139db399a6ffef460b781eb7ae9092e (patch)
tree0dac28e4526fa9c334cc621296599d453295991c /servers/physics_2d/collision_object_2d_sw.h
parent329d4796ae59ad4823e3899cfdc2c670c7c37de2 (diff)
downloadredot-engine-cb9fc117d139db399a6ffef460b781eb7ae9092e.tar.gz
Use real_t in physics code
Diffstat (limited to 'servers/physics_2d/collision_object_2d_sw.h')
-rw-r--r--servers/physics_2d/collision_object_2d_sw.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/servers/physics_2d/collision_object_2d_sw.h b/servers/physics_2d/collision_object_2d_sw.h
index 2939b4b99f..2db3961f41 100644
--- a/servers/physics_2d/collision_object_2d_sw.h
+++ b/servers/physics_2d/collision_object_2d_sw.h
@@ -61,7 +61,7 @@ private:
Variant metadata;
bool disabled;
bool one_way_collision;
- float one_way_collision_margin;
+ real_t one_way_collision_margin;
Shape() {
disabled = false;
one_way_collision = false;
@@ -153,7 +153,7 @@ public:
return shapes[p_idx].disabled;
}
- _FORCE_INLINE_ void set_shape_as_one_way_collision(int p_idx, bool p_one_way_collision, float p_margin) {
+ _FORCE_INLINE_ void set_shape_as_one_way_collision(int p_idx, bool p_one_way_collision, real_t p_margin) {
CRASH_BAD_INDEX(p_idx, shapes.size());
shapes.write[p_idx].one_way_collision = p_one_way_collision;
shapes.write[p_idx].one_way_collision_margin = p_margin;
@@ -163,7 +163,7 @@ public:
return shapes[p_idx].one_way_collision;
}
- _FORCE_INLINE_ float get_shape_one_way_collision_margin(int p_idx) const {
+ _FORCE_INLINE_ real_t get_shape_one_way_collision_margin(int p_idx) const {
CRASH_BAD_INDEX(p_idx, shapes.size());
return shapes[p_idx].one_way_collision_margin;
}