We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd753fc commit 2890f18Copy full SHA for 2890f18
Assets/Sources/LightningBolt.cs
@@ -19,6 +19,7 @@ public class LightningBolt : MonoBehaviour
19
20
public float MaxForce = 5;
21
public float MaxSpeed = 10;
22
+ public float MaxDistance = 0.25f;
23
24
Perlin noise;
25
float oneOverZigs;
@@ -44,9 +45,9 @@ void Start()
44
45
vehicles[i].Radius = 0.05f;
46
vehicles[i].MaxSpeed = MaxSpeed;
47
vehicles[i].MaxForce = MaxForce;
48
+ vehicles[i].MaxDistance = MaxDistance;
49
vehicles[i].PreviousStrength = 0.5f;
50
vehicles[i].NextStrength = 1.0f;
- vehicles[i].MaxDistance = 0.25f;
51
52
if (i < particles.Length - 1)
53
{
0 commit comments