rm dbg
This commit is contained in:
parent
629fe00866
commit
434c2e84cf
|
@ -243,14 +243,12 @@ public class RopeSimulator : MonoBehaviour
|
|||
if (overshoot > pullAnimationOvershootThreshold)
|
||||
{
|
||||
float startDot = Vector2.Dot((start.position - rope.points[1].position).normalized, start.playerInput.movement);
|
||||
Debug.Log($"player 1 dot: {startDot}");
|
||||
if (startDot > 0.35f)
|
||||
{
|
||||
start.playerAnimationHandler.animator.SetBool("IsPulling", true);
|
||||
}
|
||||
|
||||
float endDot = Vector2.Dot((end.position - rope.points[rope.points.Count - 2].position).normalized, end.playerInput.movement);
|
||||
Debug.Log($"player 2 dot: {endDot}");
|
||||
if (endDot > 0.35f)
|
||||
{
|
||||
end.playerAnimationHandler.animator.SetBool("IsPulling", true);
|
||||
|
|
Loading…
Reference in New Issue