Add riverboat captain career and distinct ship classes
Add class-specific vessel geometry and sea motion, a guided helm qualification path, dockside sailing orders, and local excursions at all 24 ports.
This commit is contained in:
@@ -161,11 +161,11 @@ namespace BigShipTycoon
|
||||
}
|
||||
}
|
||||
|
||||
public void Radome(Vector3 center, float radius)
|
||||
public void Radome(Vector3 center, float radius) => Ellipsoid(center, Vector3.one * radius);
|
||||
|
||||
internal void Ellipsoid(Vector3 center, Vector3 radii, int bands = 8, int slices = 12)
|
||||
{
|
||||
int start = vertices.Count;
|
||||
const int bands = 8;
|
||||
const int slices = 12;
|
||||
for (int j = 0; j <= bands; j++)
|
||||
{
|
||||
float elevation = Mathf.Lerp(-Mathf.PI * .5f, Mathf.PI * .5f, j / (float)bands);
|
||||
@@ -174,7 +174,7 @@ namespace BigShipTycoon
|
||||
float rotation = i * Mathf.PI * 2 / slices;
|
||||
Vector3 normal = new Vector3(Mathf.Cos(rotation) * Mathf.Cos(elevation), Mathf.Sin(elevation),
|
||||
Mathf.Sin(rotation) * Mathf.Cos(elevation));
|
||||
vertices.Add(center + normal * radius);
|
||||
vertices.Add(center + Vector3.Scale(normal, radii));
|
||||
}
|
||||
}
|
||||
for (int j = 0; j < bands; j++)
|
||||
|
||||
Reference in New Issue
Block a user