void Teleporter::generateOutlinePoints() { static const S32 sides = 10; // Must be even number mOutlinePoints.resize(sides); F32 x = getOrigin().x; F32 y = getOrigin().y; for(S32 i = 0; i < sides/2; i++) { F32 x2 = TELEPORTER_RADIUS * cos(i * Float2Pi / sides + FloatHalfPi; F32 y2 = TELEPORTER_RADIUS * sin(i * Float2Pi / sides + FloatHalfPi; mOutlinePoints[i] = Point(x + x2, y + y2); mOutlinePoints[i + sides/2] = Point(x - x2, y - y2); } }