Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

unity overlapbox

//don't forget to divide radius by half. in my case, it was:
Collider[] colliders = Physics.OverlapBox(position, boxCollider.size /2);

//https://docs.unity3d.com/ScriptReference/Physics.OverlapBox.html
 
PREVIOUS NEXT
Tagged: #unity #overlapbox
ADD COMMENT
Topic
Name
1+7 =