Skip to main content
InaCentaur
Inspiring
May 7, 2025
Question

Chess game for mobile possible? Raycast gizmo does not seem to allow screen touch position?

Is it possible to build a mobile chess game, where fine raycasts are required (not just the bad aim the examples show - at least so far, i can't seem to properly raycast with any of the gun examples)

Can we do a direct raycast from finger position on the screen? 

1 reply

MKETheGuru
Inspiring
May 8, 2025

Hi InaCentaur!

It sounds like what you're looking for is pretty in-line with what is available through the Focused Interaction API. You will be able to use mobile screen input (tap/drag) to raycast from that input point. This should be a good starting point for you! 

Happy Creating!

https://developers.meta.com/horizon-worlds/learn/documentation/tutorial-worlds/developing-for-web-and-mobile-players-tutorial/module-7c-use-tap-inputs-to-interact-with-a-keypad

Upcoming Events : Build-Along - Sky’s The Limit - Create Stunning Custom Skydomes Tuesday June 3rd 11:00 AM PT - Register June Programming Calendar