Skip to content

Commit

Permalink
fix item throw
Browse files Browse the repository at this point in the history
  • Loading branch information
stilnat committed Jan 2, 2025
1 parent d65076d commit 7420588
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ AnimatorState:
m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0
m_Motion: {fileID: -7538654608850558957, guid: 30930b4a9daf7af48a2fd7c3aa4dcc23, type: 3}
m_Motion: {fileID: -8313846177282872050, guid: 58e06c8c138d05748a0e9a81424c247a, type: 3}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
Expand Down Expand Up @@ -1311,7 +1311,7 @@ AnimatorState:
m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0
m_Motion: {fileID: -7538654608850558957, guid: 30930b4a9daf7af48a2fd7c3aa4dcc23, type: 3}
m_Motion: {fileID: -8313846177282872050, guid: 58e06c8c138d05748a0e9a81424c247a, type: 3}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ public bool Start(InteractionEvent interactionEvent, InteractionReference refere
return false;
}

ServerThrow(itemHolder, itemHolder.ItemHeld, rootTransformProvider.RootTransform, aimingTargetProvider.AimTarget, intentProvider.Intent, 0.25f / Time.timeScale);
ServerThrow(itemHolder, itemHolder.ItemHeld, rootTransformProvider.RootTransform, aimingTargetProvider.AimTarget, intentProvider.Intent, 0.4f / Time.timeScale);

if (interactionEvent.Source.GetRootSource() is IInteractionSourceAnimate animatedSource)
{
animatedSource.PlaySourceAnimation(InteractionType.Throw, interactionEvent.Source.GetComponent<NetworkObject>(), Vector3.zero, 0.25f / Time.timeScale);
animatedSource.PlaySourceAnimation(InteractionType.Throw, interactionEvent.Source.GetComponent<NetworkObject>(), Vector3.zero, 0.4f / Time.timeScale);
}

return false;
Expand Down

0 comments on commit 7420588

Please sign in to comment.