37 lines
728 B
C++
37 lines
728 B
C++
/**
|
|
* @author Edouard DUPIN
|
|
*
|
|
* @copyright 2011, Edouard DUPIN, all right reserved
|
|
*
|
|
* @license BSD v3 (see license file)
|
|
*/
|
|
|
|
#ifndef __EWOL_PHYSICS_CONE_H__
|
|
#define __EWOL_PHYSICS_CONE_H__
|
|
|
|
|
|
#include <etk/types.h>
|
|
#include <ewol/renderer/resources/physicsShape/PhysicsShape.h>
|
|
|
|
|
|
namespace ewol
|
|
{
|
|
class PhysicsCone : public ewol::PhysicsShape
|
|
{
|
|
public:
|
|
PhysicsCone(void) {};
|
|
virtual ~PhysicsCone(void) {};
|
|
public:
|
|
virtual bool Parse(const char* _line);
|
|
virtual void Display(void) {};
|
|
public:
|
|
virtual type_te GetType(void) { return ewol::PhysicsShape::cone; };
|
|
private:
|
|
float m_radius; // props["radius"] = obj.scale.x
|
|
float m_height; // props["height"] = obj.scale.z * 2.0
|
|
};
|
|
};
|
|
|
|
|
|
#endif
|