AmmoRaycast Operator - creating a simple 3D menu UI - Tutorial @cablesgl
AmmoRaycast Operator - creating a simple 3D menu UI - Tutorial  @cablesgl
Uploaded June 2022 | Updated November 2026, 3 hours ago
With the latest update we got a total rewrite of the cables physics engine that we will use to cast rays and build a simple, animated 3D menu UI.
We'll cover the operators - AmmoRaycast and AmmoWorld for our main setup and use AmmoBody operators as simple buttons.
At the end we will also look at how to use an imported GLTF Scene and calculate a correct hitbox for it to get a nice interactive butto
We hope this gets you started with the new physics engine basics and you'll follow along our future tutorials as we dive deeper into first person camera setups, walking in virtual spaces, collision physics and more!

0:00 - intro
1:57 - creating a 3D menu from scratch
2:32 - adding AmmoWorld
3:27 - AmmoRaycast operator overview
5:09 - adding AmmoBody to act as hitboxes
13:26 - UI design tip to not scale hitboxes on user interaction
15:47 - UI design tip for logic checks when rotating camera
17:40 - using GLTF scenes with AmmoRaycast




Documentation Page and Example for Ammo Raycast:
cables.gl/op/Ops.Physics.Ammo.AmmoRaycast

Documentation Page and Example for Ammo World:
cables.gl/op/Ops.Physics.Ammo.AmmoWorld

Documentation Page and Example for Ammo Body:
cables.gl/op/Ops.Physics.Ammo.AmmoBody

-----------------------------
Official cables.gl Discord: discordapp.com/invite/AGTarWv
Drop by and ask questions, share your work, and join our weekly community get togethers and chats in the voice channel.

Forums and Discussions: github.com/cables-gl/cables_docs/discussions
discuss new features, give suggestions for new videos and features and report bugs

New to cables.gl?
Check out other videos on our channel and start creating your own webgl projects for free - cables.gl
AmmoRaycast Operator - creating a simple 3D menu UI - Tutorialsocketcluster tutorialcopy cat(s) live streamArray from Numbers Operator tutorial - byte sizeLuna by Slay BellsAbleton and cables - midi clockImporting GLTF 3D Scenes with Camera positions and animating them in cables.glcables standaloneLivestream - building VJ software in cables - EP/05Shadertoy to cables - part  01MFX - MOREcables file manager - import files
cables_gl |

AmmoRaycast Operator - creating a simple 3D menu UI - Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER