Answers for "hyperx quadcast s uk"

C#
4

hyperx quadcast s uk

void CheckSpherecast(float radius, float detectableDistance, LayerMask detectableLayer) {
  Ray ray = mainCamera.ScreenPointToRay(Input.mousePosition);
  RaycastHit hitInfo;
  if (Physics.SphereCast(ray, radius, out hitInfo, detectableDistance, detectableLayer)) {
    Debug.Log(hitInfo);
  }
}
Posted by: Guest on August-28-2020

C# Answers by Framework

Browse Popular Code Answers by Language