Creating a Throwable Interaction in Meta Horizon Worlds Desktop Editor

Grabbable Entities On Mobile And Web

When to use:

When you want to design an interaction for mobile players that requires throwing a held item.

Benefits:

It creates a fun interaction that is easy to implement and doesn’t require scripting.

Steps:

  1. From the Desktop Editor, go to the Build menu and select Empty Object
  2. This will add a container where we can place all the items that you want to include in the throwable, like visual effects and meshes
  3. Add a shape to the world, from Build > Shapes. We will be using a sphere for this example, by clicking on the shape and dragging it next to the empty
  4. Using the hierarchy, place the shape inside the empty object
  5. With the shape still selected, go to the properties (right panel), and change its positon to x: 0, y: 0, z: 0
  6. Select the Empty object from the hierarchy
  7. Go the the properties (right panel) and change the Motion to Interactive
  8. Change the Interaction to Physics and Grabbable
  9. Adjust the Scale to x:0.4, y:0.4, z:0.4
  10. Press the Play button to enter preview mode
  11. Approach the sphere, and press E to grab it
  12. While grabbing the sphere, press and hold the release button for 3 seconds to charge the throw
  13. Release the button and the avatar will throw the object
  14. Press ESC twice on your keyboard to exit preview mode
  15. Go to Build > Gizmos
  16. Search for Trail
  17. Drag it into the scene, next to the throwable
  18. With the gizmo select, go to the properties and change its scale to x: 0.2, y: 0.2, z: 0.2
  19. From the hierarchy, drag the gizmo inside the empty object
  20. With the trail effect still selected, go to the properties, and change its position to x:0, y: 0, z: 0
  21. Enter preview mode again, and observe the trail effect that follows the object when in motion