Compare commits

..

2 Commits

2 changed files with 4 additions and 1 deletions

View File

@ -84,7 +84,7 @@ namespace Passer.Humanoid {
GameObject obj = Instantiate(prefab, socket.transform.position, socket.transform.rotation);
obj.name = prefab.name; // Remove the (Clone)
socket.Attach(obj.transform);
socket.Attach(obj.transform, false);
if (socket.attachedTransform == null)
Debug.LogWarning("Could not attach transform");
else {

View File

@ -327,6 +327,9 @@ namespace Passer.Humanoid {
bool grabHandle = false;
bool grabHandleInSocket = false;
foreach (Collider collider in colliders) {
if (collider == null)
continue;
GameObject obj;
Rigidbody objRigidbody = collider.attachedRigidbody;
if (objRigidbody != null)