mirror of
https://github.com/nothke/quality-control.git
synced 2025-08-30 23:43:42 +00:00
Crane logic fixes
This commit is contained in:
@@ -52,7 +52,7 @@ public class CranePickDrop : MonoBehaviour
|
||||
magnet.strength = magnetStrength;
|
||||
|
||||
crane.testTgt = handlingBody.transform;
|
||||
if (Vector3.Distance(handlingBody.position, magnet.transform.position) < 1f)
|
||||
if (magnet.IsCloseTo(handlingBody, 2f))
|
||||
{
|
||||
crane.testTgt = dropTarget;
|
||||
state = State.Tansporting;
|
||||
|
Reference in New Issue
Block a user