How to use RaycastCommand
RaycastCommand is API that allows multiple raycast requests to be made in jobs. By using RaycastCommand instead of multiple calls to methods like Physics.Raycast(), the time spent on raycasts on the main thread can be reduced. The post contains code samples to demonstrate the comparison between raycasts using Physics.RaycastNonAlloc() and RaycastCommand. The results show the benefits of using RaycastCommand for efficient raycast operations.
https://coffeebraingames.wordpress.com/2023/05/22/how-to-use-raycastcommand/
#physics #jobs #raycast
Post #2194
203