Skip to content

Commit

Permalink
better grab steel girder
Browse files Browse the repository at this point in the history
  • Loading branch information
stilnat committed Dec 7, 2024
1 parent 1caf9eb commit 7e989fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ MonoBehaviour:
_networkBehaviours:
- {fileID: 6528007219760414512}
- {fileID: 3677971068628630644}
- {fileID: 0}
- {fileID: 4376666213352250170}
<ParentNetworkObject>k__BackingField: {fileID: 0}
<ChildNetworkObjects>k__BackingField: []
Expand Down Expand Up @@ -272,7 +271,7 @@ Rigidbody:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3591147544166670882}
serializedVersion: 2
m_Mass: 600
m_Mass: 100
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 1
Expand Down Expand Up @@ -309,7 +308,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 7074274b1e6ce7441a60a1b0798d7a45, type: 3}
m_Name:
m_EditorClassIdentifier:
_componentIndexCache: 3
_componentIndexCache: 2
_addedNetworkObject: {fileID: -2900075557854325373}
_networkObjectCache: {fileID: -2900075557854325373}
_dragged: 0
Expand Down
5 changes: 3 additions & 2 deletions Assets/Scripts/SS3D/Systems/Animations/GrabAnimation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,12 @@ private void HandleGrabbing()
_grabbedObject.transform.position = _mainHand.Hold.HoldTransform.position;
grabbedRb.velocity = Vector3.zero;
grabbedRb.position = _mainHand.Hold.HoldTransform.position;
grabbedRb.detectCollisions = false;
}

grabbedRb.detectCollisions = false;


_fixedJoint = _mainHand.HandBone.gameObject.AddComponent<FixedJoint>();
_fixedJoint = Controller.GameObject.AddComponent<FixedJoint>();
_fixedJoint.connectedBody = grabbedRb;
_fixedJoint.breakForce = _jointBreakForce;
}
Expand Down

0 comments on commit 7e989fc

Please sign in to comment.