Fix the volume calculation for cylinders
This commit is contained in:
parent
c7fefe50da
commit
03903fdeec
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,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() const override { return 4.0 / 3.0 * Math_PI * radius * radius * radius + height * Math_PI * radius * radius; }
|
||||
virtual real_t get_area() const override { return height * Math_PI * radius * radius; }
|
||||
|
||||
virtual PhysicsServer3D::ShapeType get_type() const override { return PhysicsServer3D::SHAPE_CYLINDER; }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue