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

Опубликовано: 06 Октябрь 2024
на канале: cables_gl
1,426
30

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:
https://cables.gl/op/Ops.Physics.Ammo...

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

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

-----------------------------
Official cables.gl Discord: https://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: https://github.com/cables-gl/cables_d...
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 - https://cables.gl