Question by
Mouroz · Jan 26, 2019 at 12:28 AM ·
c#arrayraycasthit2d
reaching the limit of a Raycast[] array?
protected RaycastHit2D[] hitBuffer = new RaycastHit2D[16];
int hits = rb2d.Cast(new Vector2 (0, Mathf.Sign(vsp)), hitBuffer, Mathf.Abs(vsp);
if i find 18 collisions what will be the value of the int hits? and will the hitBuffer get no value or will it get the first 16 collisions found
Comment
Your answer
Follow this Question
Related Questions
Error CS1061: Are you missing an assembly reference? 2 Answers
How to fire missiles sequentially? 0 Answers
Strange Raycast problem 0 Answers
Destroy a Prefab from an Array? (C#) 2 Answers
add button to switch cars 1 Answer