diff options
author | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2018-03-22 11:30:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-22 11:30:47 +0200 |
commit | 4b00cc9f8a7cbdf851cc54c1b7fcb9e7805e1ece (patch) | |
tree | 26da00b610a98234d090a67ed01eacbeb3e4dc12 | |
parent | f2df8c94b2e5ba6c4eee3515d1d30f36194ca803 (diff) | |
parent | 9042ef3836925e6185165668d1b1640e35879760 (diff) |
Merge pull request #17685 from marcelofg55/get_area_const
Fix missing const in CapsuleShapeSW::get_area
-rw-r--r-- | servers/physics/shape_sw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics/shape_sw.h b/servers/physics/shape_sw.h index 7f7f9f4f98..7be818b23c 100644 --- a/servers/physics/shape_sw.h +++ b/servers/physics/shape_sw.h @@ -240,7 +240,7 @@ public: _FORCE_INLINE_ real_t get_height() const { return height; } _FORCE_INLINE_ real_t get_radius() const { return radius; } - virtual real_t get_area() { return 4.0 / 3.0 * Math_PI * radius * radius * radius + height * Math_PI * radius * radius; } + virtual real_t get_area() const { return 4.0 / 3.0 * Math_PI * radius * radius * radius + height * Math_PI * radius * radius; } virtual PhysicsServer::ShapeType get_type() const { return PhysicsServer::SHAPE_CAPSULE; } |