aieProject2D1/Sphere.cpp
Sphere::Sphere(glm::vec2 v2Position, glm::vec2 v2Velocity, float fMass, float fRadius, glm::vec4 v4Color) : Rigidbody(ESHAPETYPE_SPHERE, v2Position, v2Velocity, 0, fMass, 0.2f, 0.2f, 0.8f)
{
	// set sphere radius
	m_fRadius = fRadius;
	
	// set sphere color.
	m_v4Color = v4Color;
}
//--------------------------------------------------------------------------------------
// Default Constructor.
//
// Param:
//		v2Position: a vector2 for sphere postion.
//		v2Velocity: a vector2 for sphere velocity.
//		fMass: a float value for sphere mass.
//		fRadius: a float value for sphere radius.
//		v4Color: a vector4 for sphere color.
//--------------------------------------------------------------------------------------
Default Constructor.
Param:
v2Position: a vector2 for sphere postion.
v2Velocity: a vector2 for sphere velocity.
fMass: a float value for sphere mass.
fRadius: a float value for sphere radius.
v4Color: a vector4 for sphere color.
Default Constructor . Param : v2Position : a vector2 for sphere postion . v2Velocity : a vector2 for sphere velocity . fMass : a float value for sphere mass . fRadius : a float value for sphere radius . v4Color : a vector4 for sphere color .
Sphere::Sphere(glm::vec2 v2Position, glm::vec2 v2Velocity, float fMass, float fRadius, glm::vec4 v4Color) : Rigidbody(ESHAPETYPE_SPHERE, v2Position, v2Velocity, 0, fMass, 0.2f, 0.2f, 0.8f)
{
	m_fRadius = fRadius;
	m_v4Color = v4Color;
}
Sphere :: Sphere ( glm :: vec2 v2Position , glm :: vec2 v2Velocity , float fMass , float fRadius , glm :: vec4 v4Color ) : Rigidbody ( ESHAPETYPE_SPHERE , v2Position , v2Velocity , 0 , fMass , 0.2f , 0.2f , 0.8f ) { m_fRadius = fRadius ; m_v4Color = v4Color ; }
Default Constructor.
Default Constructor .
// set sphere radius // set sphere color.