aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Kollack <nkollack@gmail.com>2022-04-10 18:46:28 -0500
committerNeil Kollack <nkollack@gmail.com>2022-04-10 18:46:28 -0500
commit6fa2ddb45554b9a236e2d2909ae30fb2c2df9a31 (patch)
tree46814b127b7fde4e2ece8ae36ec8e6bf0bbfa856
parent3565b47fd64778fc7be630aea89fcd99d1907a07 (diff)
fix: rope jittery-ness
-rw-r--r--Assets/Prefabs/Hook.prefab4
-rw-r--r--Assets/Scripts/RopePrototype.cs3
2 files changed, 4 insertions, 3 deletions
diff --git a/Assets/Prefabs/Hook.prefab b/Assets/Prefabs/Hook.prefab
index 434a3ee..0728e6b 100644
--- a/Assets/Prefabs/Hook.prefab
+++ b/Assets/Prefabs/Hook.prefab
@@ -140,10 +140,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f828efbe27e65524c9d7e0d87b6a6f0f, type: 3}
m_Name:
m_EditorClassIdentifier:
- constraintIterations: 50
+ constraintIterations: 15
gravityMultiplier: 1
lineWidth: 0.2
- ropeSegmentLength: 0.25
+ ropeSegmentLength: 0.2
segmentCount: 35
--- !u!120 &-1471091967506001749
LineRenderer:
diff --git a/Assets/Scripts/RopePrototype.cs b/Assets/Scripts/RopePrototype.cs
index d1aca32..901a3d3 100644
--- a/Assets/Scripts/RopePrototype.cs
+++ b/Assets/Scripts/RopePrototype.cs
@@ -45,11 +45,12 @@ public class RopePrototype : MonoBehaviour
ropeCreated = true;
}
RenderLine();
+ Simulate();
}
void FixedUpdate()
{
- Simulate();
+
}
void RenderLine()