예제 #1
0
 private void Climb()
 {
     //velocityVector = new Vector3(leftRightSurfaceVector.x * Mathf.Abs(horizontalInput) * climbSpeed, Vector3.up.y * verticalInput * climbSpeed, (leftRightSurfaceVector.z + surfaceSlopeVector.z) * verticalInput * climbSpeed * surfaceSlopeClimbMultiplier);
     //playerRb.velocity = velocityVector;
     //climbVector = new Vector3(leftRightSurfaceVector.x * Mathf.Abs(horizontalInput), Vector3.up.y * verticalInput, leftRightSurfaceVector.z * Mathf.Abs(horizontalInput)) * Time.fixedDeltaTime * climbSpeed;
     //Debug.DrawRay(transform.position, climbVector.normalized, Color.blue, .2f);
     playerAnimationController.HandlePlayerClimbBlend(verticalInput, horizontalInput);
 }