Fix weight of grabbed objects without handles
This commit is contained in:
parent
0cb43c31d0
commit
143add636f
@ -678,6 +678,9 @@ namespace Passer.Humanoid {
|
||||
}
|
||||
|
||||
RigidbodyDisabled.ParentRigidbody(handRigidbody, objRigidbody);
|
||||
if (handRigidbody != null)
|
||||
handRigidbody.mass = objRigidbody.mass;
|
||||
|
||||
|
||||
HumanoidNetworking.DisableNetworkSync(objRigidbody.gameObject);
|
||||
if (!humanoid.isRemote)
|
||||
@ -855,6 +858,8 @@ namespace Passer.Humanoid {
|
||||
|
||||
if (grabbedHandle != null)
|
||||
LetGoHandle(grabbedHandle);
|
||||
|
||||
handRigidbody.mass = 1;
|
||||
}
|
||||
this.grabbedRigidbody = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user