Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity spherecast

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);
  }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: call stored proc c# 
Csharp :: unity 2d player move 
Csharp :: c# sqlite query 
Csharp :: Find an item in a list by LINQ 
Csharp :: how to deselect a button through code unity 
Csharp :: how to make multiplayer game in unity 
Csharp :: debug c# console 
Csharp :: C# array index tostring 
Csharp :: add object to list c# 
Csharp :: unity keycode for f 
Csharp :: unity movement 
Csharp :: excel which style property define background color in c# 
Csharp :: return json from controller c# 
Csharp :: find-text-in-string-with-c-sharp 
Csharp :: c# stop process 
Csharp :: two variable in one loop c# 
Csharp :: how to add a queue unity 
Csharp :: c# loop string array 
Csharp :: C# Unit test IConfiguration 
Csharp :: defaultrequestheaders.authorization basic auth 
Csharp :: how to install jdk on linux manjaro 
Csharp :: add mime type for woff in web.config 
Csharp :: list to list<selectlistitem c# 
Csharp :: c# save pdf to folder 
Csharp :: process.start web 
Csharp :: c sharp thread lambda 
Csharp :: unity 3d camera movement script 
Csharp :: asp.net core get previouse url 
Csharp :: c# serial port 
Csharp :: c# enum default 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =