Fix sticking objects when using collider duplication
This commit is contained in:
parent
e33f599371
commit
5d2459979c
@ -658,13 +658,16 @@ namespace Passer.Humanoid {
|
||||
return false;
|
||||
}
|
||||
|
||||
// We need to determine this here because the kinematic state
|
||||
// can change when grabbing
|
||||
grabbedKinematicRigidbody = objRigidbody.isKinematic;
|
||||
|
||||
if (objRigidbody.isKinematic)
|
||||
GrabStaticWithoutHandle(objRigidbody.gameObject);
|
||||
else
|
||||
GrabRigidbodyParenting(objRigidbody);
|
||||
|
||||
grabbedRigidbody = true;
|
||||
grabbedKinematicRigidbody = objRigidbody.isKinematic;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user