/*    
    This file is a part of Stonefish.

    Stonefish is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Stonefish is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
*/

//
//  Sphere.h
//  Stonefish
//
//  Created by Patryk Cieslak on 1/30/13.
//  Copyright (c) 2013-2019 Patryk Cieslak. All rights reserved.
//

#ifndef __Stonefish_Sphere__
#define __Stonefish_Sphere__

#include "entities/SolidEntity.h"

namespace sf
{
    //! A class representing a sphere-shaped rigid body.
    class Sphere : public SolidEntity
    {
    public:
        //! A constructor.
        /*!
         \param uniqueName a name for the sphere
         \param phy the specific settings of the physics computation for the body
         \param radius a radius of the sphere
         \param origin a transformation of the physical mesh (graphical is the same for sphere)
         \param material the name of the material the sphere is made of
         \param look the name of the graphical material used for rendering
         \param thickness defines the thickness of the sphere walls, if positive the sphere is treated as shell
         */
        Sphere(std::string uniqueName, BodyPhysicsSettings phy, Scalar radius, const Transform& origin, std::string material, std::string look, Scalar thickness = Scalar(-1));
        
        //! A method that returns the type of body.
        SolidType getSolidType();
        
        //! A method that returns the collision shape for the sphere.
        btCollisionShape* BuildCollisionShape();
        
    private:
        Scalar r;
    };
}

#endif
