修复随机点算法bug
This commit is contained in:
parent
73333a079f
commit
34c63b8c38
1 changed files with 1 additions and 1 deletions
|
@ -57,6 +57,6 @@ public class VectorTool {
|
|||
}
|
||||
|
||||
public static Vec3 randomPos(Vec3 originPos, int radius) {
|
||||
return originPos.add(new Vec3(Math.random() * radius, 0, 0).yRot((float) (360 * Math.random())));
|
||||
return originPos.add(new Vec3(Math.random() * radius, 0, 0).yRot((float) (360 * Math.random()) * Mth.DEG_TO_RAD));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue