Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

ray casting unity

Physics.Raycast(transform.position, transform.TransformDirection(Vector3.forward), out hit, Mathf.Infinity, layerMask)
 
PREVIOUS NEXT
Tagged: #ray #casting #unity
ADD COMMENT
Topic
Name
9+8 =