text: #include "Sphere.h"
  
  #include <Gizmos.h>
  
  Sphere::Sphere(glm::vec2 a_position, glm::vec2 a_velocity, float a_mass, float a_radius, glm::vec4 a_colour) :
  	Rigidbody(SPHERE, a_position, a_velocity, a_mass, 0)
  {
  	m_radius = a_radius;
  	m_colour = a_colour;
  	m_moment = 0.5f * m_mass * m_radius * m_radius;
  }
  
  Sphere::~Sphere()
  {
  	
  }
  
  void Sphere::MakeGizmo()
  {
  	aie::Gizmos::add2DCircle(m_position, m_radius, 12, m_colour);
  
  	glm::vec2 end = glm::vec2(std::cos(m_rotation), std::sin(m_rotation)) * m_radius;
  	aie::Gizmos::add2DLine(m_position, m_position + end, glm::vec4(1, 0, 1, 1));
  }
  
  bool Sphere::IsInside(glm::vec2 a_point)
  {
  	return glm::distance(a_point, GetPosition()) <= GetRadius();
  }
  