diff --git a/Assets/Scripts/MeshGenerator/TorusGenerator.cs b/Assets/Scripts/MeshGenerator/TorusGenerator.cs index 996574c010e12f6eeb44b4f816ba4d7325904845..607f783b525d2d3d42e94321ca07337e45aa7594 100644 --- a/Assets/Scripts/MeshGenerator/TorusGenerator.cs +++ b/Assets/Scripts/MeshGenerator/TorusGenerator.cs @@ -25,14 +25,6 @@ protected override void GenerateShape() if (torusMesh.sharedMesh != null) torusMesh.sharedMesh.Clear(); torusMesh.mesh = CreateMesh(CreateTorus(torusRadius, ringRadius, ringSegmentCount, segmentSideCount)); - - //TODO for testing -- remove - try - { - MeshCollider meshCol = GetComponentInChildren<MeshCollider>(); - meshCol.sharedMesh = torusMesh.mesh; - } - catch (Exception e) { } } private static (Vector3[] vertices, int[] triangles) CreateTorus(float torusRadius, float ringRadius, int ringSegmentCount, int segmentSideCount)