1
0
forked from cgvr/DeltaVR

shape scanner supports multiple object scanning, always destroys colliding objects on config completion

This commit is contained in:
2026-03-01 11:30:33 +02:00
parent dfdb47b94a
commit 95e67b9870
14 changed files with 90 additions and 97 deletions

View File

@@ -11,7 +11,6 @@ public class Printer3D : MonoBehaviour
private bool isPrinting = false;
private EventInstance printingSound;
private GameObject GeneratedModel;
// Start is called before the first frame update
void Start()
@@ -39,12 +38,6 @@ public class Printer3D : MonoBehaviour
GameObject spawnedObject = await ModelGenerationUtils.Instance.SpawnModel(encodedModel, printedObjectSize);
InitializeSpawnedObject(spawnedObject);
if (GeneratedModel != null)
{
// Destroy previous generated object (first move out of ShapeScanner to trigger OnTriggerExit
GeneratedModel.transform.position = Vector3.zero;
}
GeneratedModel = spawnedObject;
printingSound.setParameterByName("3DPrinterPrintingJob", 1);
isPrinting = false;