1
0
forked from cgvr/DeltaVR

printer spawns object in correct place, size, and plays sound

This commit is contained in:
2026-02-15 12:38:13 +02:00
parent 46400bc1f0
commit bd8a3d90ca
6 changed files with 522 additions and 12 deletions

View File

@@ -62,9 +62,7 @@ public class Printer3DInputHole : MonoBehaviour
// 2) Make sure physics doesn't fight the tween (optional but recommended)
if (rb != null)
{
rb.isKinematic = true; // prevent forces during tween
rb.velocity = Vector3.zero;
rb.angularVelocity = Vector3.zero;
rb.isKinematic = true;
}
// 3) Optionally disable grabbing during the tween so the player can't re-grab mid-flight