Skip to content

Commit

Permalink
More tabs/formating
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbian committed Jul 7, 2019
1 parent 508c1f3 commit 5eaf1a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ModelMultiShurikenPersistFX.cs
@@ -1,4 +1,4 @@
/*
/*
* Copyright (c) 2017, Sébastien GAGGINI AKA Sarbian, France
* All rights reserved.
*
Expand Down
9 changes: 4 additions & 5 deletions PersistentKSPShurikenEmitter.cs
@@ -1,4 +1,4 @@
/*
/*
* Copyright (c) 2017, Sébastien GAGGINI AKA Sarbian, France
* All rights reserved.
*
Expand Down Expand Up @@ -254,25 +254,24 @@ private void Emit (int ThisInUpdate, int TotalInUpdate)
break;

case KSPParticleEmitter.EmissionShape.Line:
pos = new Vector3 (Random.Range (-shape1D, shape1D) * 0.5f, 0f, 0f);
pos = new Vector3 (Random.Range (-shape1D, shape1D) * 0.5f, 0f, 0f);
break;

case KSPParticleEmitter.EmissionShape.Ellipsoid:
pos = Random.insideUnitSphere;
pos.Scale(shape3D);

break;

case KSPParticleEmitter.EmissionShape.Ellipse:
pos = Random.insideUnitCircle;
pos.x = pos.x * shape2D.x;
pos.z = pos.y * shape2D.y;
pos.y = 0f;
break;
break;

case KSPParticleEmitter.EmissionShape.Sphere:
pos = Random.insideUnitSphere * shape1D;
break;
break;

case KSPParticleEmitter.EmissionShape.Cuboid:
pos = new Vector3(
Expand Down

0 comments on commit 5eaf1a3

Please sign in to comment.