mirror of
https://github.com/nothke/quality-control.git
synced 2026-10-11 19:28:55 +00:00
Swingin' magnet
This commit is contained in:
1 parent
464c091655
commit
2de1111cd0
2 files changed
+6
-7
No files matched your search
@@ -24,6 +24,7 @@ public class SlidingCrane : MonoBehaviour
|
||||
private void Start()
|
||||
{
|
||||
target = transform.position;
|
||||
xMotion.progress = 0.5f;
|
||||
}
|
||||
|
||||
void FixedUpdate()
|
||||
@@ -51,6 +52,6 @@ public class SlidingCrane : MonoBehaviour
|
||||
yTransform.localPosition = new Vector3(0, 0, yMotion.progress * yRange);
|
||||
xTransform.localPosition = new Vector3(x, 0, 0);
|
||||
|
||||
cradleRb.MovePosition(cradleTransform.position);
|
||||
//cradleRb.MovePosition(cradleTransform.position);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user