Skip to content

Commit

Permalink
Changed lin prop of asteroid clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
thorwin99 committed Oct 10, 2021
1 parent a24d9b2 commit c26c18e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public ContainmentType Contains(Vector3D point)

MyRandom inst = new MyRandom(seed);

double baseProp = inst.NextDouble();
double baseProp = inst.GetRandomFloat(0, 1);

double linProp = 0.7 - dist / Size;
double linProp = 1 - dist / Size;

if(baseProp + linProp > 0.5) return ContainmentType.Contains;

Expand All @@ -37,6 +37,8 @@ public ContainmentType Contains(Vector3D point)

public Vector3D GetClosestPoint(Vector3D point)
{
if (Vector3D.Distance(point, Position) < Size) return Position;

Vector3D v = point - Position;
Vector3D norm = Vector3D.Normalize(v);

Expand Down
2 changes: 1 addition & 1 deletion SEWorldGenPlugin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.1.1.1")]
[assembly: AssemblyVersion("2.1.1.2")]
[assembly: AssemblyFileVersion("1.0.0")]

0 comments on commit c26c18e

Please sign in to comment.