I did a dumb
This commit is contained in:
buthed010203
2021-08-16 08:15:20 -04:00
committed by GitHub
parent d83f48891a
commit 1a12510081

View File

@@ -9,7 +9,7 @@ public class CircleFormation extends FormationPattern{
@Override
public Vec3 calculateSlotLocation(Vec3 outLocation, int slotNumber){
if(slots > 1){
float angle = (360f * slotNumber) / slots + slots == 8 ? 22.5f : 0;
float angle = (360f * slotNumber) / slots + (slots == 8 ? 22.5f : 0);
float radius = spacing / (float)Math.sin(180f / slots * Mathf.degRad);
outLocation.set(Angles.trnsx(angle, radius), Angles.trnsy(angle, radius), angle);
}else{