Compare commits
No commits in common. "879a715b09892699e2b9dd3ed1e1f48f32a1c157" and "a0d2a00a3ab031df1151c5e05b95cc1ec8073c65" have entirely different histories.
879a715b09
...
a0d2a00a3a
@ -84,7 +84,7 @@ namespace Passer.Humanoid {
|
|||||||
GameObject obj = Instantiate(prefab, socket.transform.position, socket.transform.rotation);
|
GameObject obj = Instantiate(prefab, socket.transform.position, socket.transform.rotation);
|
||||||
obj.name = prefab.name; // Remove the (Clone)
|
obj.name = prefab.name; // Remove the (Clone)
|
||||||
|
|
||||||
socket.Attach(obj.transform, false);
|
socket.Attach(obj.transform);
|
||||||
if (socket.attachedTransform == null)
|
if (socket.attachedTransform == null)
|
||||||
Debug.LogWarning("Could not attach transform");
|
Debug.LogWarning("Could not attach transform");
|
||||||
else {
|
else {
|
||||||
|
|||||||
@ -327,9 +327,6 @@ namespace Passer.Humanoid {
|
|||||||
bool grabHandle = false;
|
bool grabHandle = false;
|
||||||
bool grabHandleInSocket = false;
|
bool grabHandleInSocket = false;
|
||||||
foreach (Collider collider in colliders) {
|
foreach (Collider collider in colliders) {
|
||||||
if (collider == null)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
GameObject obj;
|
GameObject obj;
|
||||||
Rigidbody objRigidbody = collider.attachedRigidbody;
|
Rigidbody objRigidbody = collider.attachedRigidbody;
|
||||||
if (objRigidbody != null)
|
if (objRigidbody != null)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user