Skip to main content
Participant
April 15, 2025
Question

How to shoot a projectile toward the center of the screen

Hi everyone.

I can't understand how the projectile launcher configured in the "Simple Shooting Mechanism" demo manages to shoot toward the center of the screen.

It has no rotation, yet it's pointing downward, and its scale is extremely large. When I try to recreate that hierarchy from scratch using another grabbable object, I can't get the same result.
Thanks to anyone who can help!

1 reply

PigeonNo12
Honored Contributor
April 22, 2025

Here's the documentation for it: https://developers.meta.com/horizon-worlds/learn/documentation/create-for-web-and-mobile/grabbable-entities/aim-direction

But in summary, the script should be running locally, and the GrabbableAim arrow should be adjusted to point in the direction that you want to shoot. This arrow is only visible when switching to VR mode. 

Upcoming Events : Build with a Mentor: Custom UI Thursday 3/20 at 5:00 PM PT Register March calendar of all Mentor Workshops and Office Hours