TGViewer
Everyday Unity Everyday Unity @everydayunity · 1.19K subscribers
Post #2194 203
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
COFFEE BRAIN GAMES How to use RaycastCommand It’s been a while since my last post. I was busy with processing my Visa and exit clearance since the last one. I haven’t opened Unity since then. I arrived in Germany last February 9 a…
  • 👍 3
More from @everydayunity
  1. Sep 24, 2026Now you can change the effort mid session in new Claude. So the advice about caching from…
  2. Sep 24, 2026We were wondering in the comments what Claude reset does. Here is the answer https://www.r…
  3. Sep 22, 2026Introducing GPT‑6 Sol and Luna And better & cheaper sol and luna as an immediate response…
  4. Sep 22, 2026Introducing Claude Opus 5.5 \ Anthropic Cost and speed. Opus 5.5 requires less compute to…
  5. Sep 21, 2026Claude Code effort level and model selection effort means more than just "thinking time."…
  6. Sep 19, 2026Netcode for GameObjects 3.0.0 is now available It is preparation for Unity’s shared Netcod…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →