RaycastAll with job system
I couldn't figure out a way to do Physics.RaycastAll
similar behaviour in the new job system. There is the RayCastCommand
but it's equivalent to Physics.Raycast
, in other words, it returns the first hit only. There is a paramenter to specify the max hits, but regardles of the value I assign to it, it always returns the first hit only. I tried to connect with Unity and they responded that it's not a bug, this is how it's supposed to work and that they're going to correct the documentation in the scripting API. but that didn't happen which is very confusing for me. Is it a bug or not? if yes when will it be fixed, if not how to do RayCastAll with the job system? Has anybody found a solution to this?
Your answer
Follow this Question
Related Questions
Obtain a Transform using RayCastAll without a Collision (ie a point in space) 2 Answers
Ray does not rotate with gameobject when IK is enabled 1 Answer
Calculate normal vector to the plane that was hit by raycast 0 Answers
Will a raycast collide with another raycast if properly aligned? 1 Answer
Shoot towards mouse except mouse y 1 Answer