From 6fa2ddb45554b9a236e2d2909ae30fb2c2df9a31 Mon Sep 17 00:00:00 2001 From: Neil Kollack Date: Sun, 10 Apr 2022 18:46:28 -0500 Subject: fix: rope jittery-ness --- Assets/Prefabs/Hook.prefab | 4 ++-- Assets/Scripts/RopePrototype.cs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'Assets') 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() -- cgit v1.2.3-70-g09d2