mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Fix missing const in CapsuleShapeSW::get_area
(cherry picked from commit 9042ef3836)
This commit is contained in:
committed by
Rémi Verschelde
parent
b977e8ab0c
commit
5a89810238
@@ -238,7 +238,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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user