mirror of
https://github.com/nothke/quality-control.git
synced 2025-08-08 23:03:43 +00:00
Magnet no longer sticking to itself, and crane stuff
This commit is contained in:
@@ -13,7 +13,7 @@ public class Magnet : MonoBehaviour
|
||||
{
|
||||
var otherRb = other.attachedRigidbody;
|
||||
|
||||
if (otherRb)
|
||||
if (otherRb && otherRb.isKinematic == false)
|
||||
{
|
||||
Vector3 dir = otherRb.position - transform.position;
|
||||
float dirSq = Vector3.SqrMagnitude(dir);
|
||||
|
Reference in New Issue
Block a user