SHARE
TWEET

Untitled

gabry90 May 7th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Vector2 rayOriginPoint = Vector2.Lerp(_verticalRayCastFromLeft, _verticalRayCastToRight, (float)i/(float)(NumberOfVerticalRays-1));
  2.  
  3.                 if ((_newPosition.y>0) && (!State.WasGroundedLastFrame))
  4.                 {
  5.                     _belowHitsStorage[i] = MMDebug.RayCast (rayOriginPoint,-transform.up,rayLength, _raysBelowLayerMaskPlatformsWithoutOneWay, Color.blue,Parameters.DrawRaycastsGizmos);  
  6.                 }                  
  7.                 else
  8.                 {
  9.                     _belowHitsStorage[i] = MMDebug.RayCast (rayOriginPoint,-transform.up,rayLength, _raysBelowLayerMaskPlatforms, Color.blue,Parameters.DrawRaycastsGizmos);                   
  10.                 }
  11.  
  12.                 if (_belowHitsStorage[i].collider != null
  13.                     && _belowHitsStorage[i].collider.gameObject.GetInstanceID() == gameObject.GetInstanceID())
  14.                     continue;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top