Compare commits
2 Commits
a0d2a00a3a
...
879a715b09
| Author | SHA1 | Date | |
|---|---|---|---|
| 879a715b09 | |||
| dc185b4f22 |
@ -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 {
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user