Fix circle calculation

This commit is contained in:
Cruel
2015-09-14 16:51:02 -04:00
parent 12865cd070
commit 69922b400b
+1 -1
View File
@@ -75,7 +75,7 @@ Vector3f CircleShape::getPoint(unsigned int index) const
{
static const float pi = 3.141592654f;
float angle = index * 2 * pi / m_pointCount - pi / 2;
float angle = 2.5f * pi - index * 2 * pi / m_pointCount;
float x = std::cos(angle) * m_radius;
float y = std::sin(angle) * m_radius;