summaryrefslogtreecommitdiff
path: root/scene/2d/collision_polygon_2d.h
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-01-29 18:22:12 -0500
committerAaron Franke <arnfranke@yahoo.com>2021-01-29 19:59:58 -0500
commit9199a681de39f8410f4987c63d66817eb5be56fc (patch)
treee1618deec7de484ab157713f3d6ca96fb5da5545 /scene/2d/collision_polygon_2d.h
parent46de553473b4bea49176fb4316176a5662931160 (diff)
Use real_t in physics nodes
Diffstat (limited to 'scene/2d/collision_polygon_2d.h')
-rw-r--r--scene/2d/collision_polygon_2d.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/2d/collision_polygon_2d.h b/scene/2d/collision_polygon_2d.h
index caa5b2c3ec..9c9e6f8f62 100644
--- a/scene/2d/collision_polygon_2d.h
+++ b/scene/2d/collision_polygon_2d.h
@@ -53,7 +53,7 @@ protected:
CollisionObject2D *parent;
bool disabled;
bool one_way_collision;
- float one_way_collision_margin;
+ real_t one_way_collision_margin;
Vector<Vector<Vector2>> _decompose_in_convex();
@@ -86,8 +86,8 @@ public:
void set_one_way_collision(bool p_enable);
bool is_one_way_collision_enabled() const;
- void set_one_way_collision_margin(float p_margin);
- float get_one_way_collision_margin() const;
+ void set_one_way_collision_margin(real_t p_margin);
+ real_t get_one_way_collision_margin() const;
CollisionPolygon2D();
};