forked from cgvr/DeltaVR
printer spawns object in correct place, size, and plays sound
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user