Skip to content

Commit 1bc2cc3

Browse files
author
Ricardo J. Mendez
committed
Improved lightning behavior
It now chases the cube much better than before. I've also tightened the rope behavior so that it gives more priority to the next link than to the previous, resulting in a better grouping.
1 parent 55b3973 commit 1bc2cc3

30 files changed

+5
-3
lines changed

Assets/Scenes/Lightning.unity

0 Bytes
Binary file not shown.

Assets/Scripts

Submodule Scripts updated from 8a63355 to 541d762

Assets/Sources/LightningBolt.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ void Start()
3636
{
3737
vehicles[i] = new Rope(particles[i].position, 0.1f, null, null);
3838

39-
vehicles[i].Mass = 0.1f;
40-
vehicles[i].Radius = 0.05f;
39+
vehicles[i].Mass = 0.1f;
40+
vehicles[i].Radius = 0.05f;
4141
vehicles[i].MaxSpeed = 10f;
4242
vehicles[i].MaxForce = 5;
43+
vehicles[i].PreviousStrength = 0.5f;
44+
vehicles[i].NextStrength = 1.0f;
4345

4446
if (i < particles.Length - 1)
4547
{

Library/EditorBuildSettings.asset

68 Bytes
Binary file not shown.

Library/FailedAssetImports.txt

100755100644
File mode changed.
512 Bytes
Binary file not shown.
387 Bytes
Binary file not shown.

Library/assetDatabase3

100755100644
0 Bytes
Binary file not shown.
80 Bytes
Binary file not shown.
Binary file not shown.
-3.33 MB
Binary file not shown.
664 Bytes
Binary file not shown.
-40 Bytes
Binary file not shown.
Binary file not shown.
-8 Bytes
Binary file not shown.
Binary file not shown.
-16 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.
48 Bytes
Binary file not shown.

Library/expandedItems

92 Bytes
Binary file not shown.

Library/metadata/00/00000000000000002000000000000000

100755100644
File mode changed.

Library/metadata/00/00000000000000003000000000000000

100755100644
File mode changed.

Library/metadata/00/00000000000000004000000000000000

100755100644
File mode changed.

Library/metadata/00/00000000000000006000000000000000

100755100644
File mode changed.

Library/metadata/00/00000000000000007000000000000000

100755100644
File mode changed.

Library/metadata/00/00000000000000008000000000000000

100755100644
File mode changed.

Library/metadata/00/00000000000000009000000000000000

100755100644
File mode changed.

Library/metadata/00/0000000000000000a000000000000000

100755100644
File mode changed.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)