-
Collaborez sur des modèles 3D structurés dans visionOS
Découvrez comment donner vie à des modèles 3D structurés dans visionOS. Nous abordons la préparation de fichiers USDZ, vous montrons comment manipuler des entités individuelles au sein d'assemblages hiérarchiques et inspectons les composants internes d'un modèle à l'aide d'un plan de coupe. Créez de superbes animations éclatées pour la révision de plans et les expériences de collaboration sur Apple Vision Pro.
Chapitres
- 0:00 - Introduction
- 2:55 - Asset preparation
- 5:05 - Manipulating the hierarchy
- 8:15 - Interactive clipping
- 18:16 - Autoexpansion
- 24:10 - Next steps
Ressources
Vidéos connexes
WWDC26
- Découvrez le framework Spatial Preview
- Découvrez les améliorations apportées au suivi d’objet dans visionOS
WWDC25
- Mieux ensemble : SwiftUI et RealityKit
- Partagez des expériences visionOS avec des personnes à proximité
- Quoi de neuf dans RealityKit
WWDC24
-
Rechercher dans cette vidéo…
-
-
7:10 - Opening an assembly
func openAssembly() { components[ManipulationComponent.self] = nil components[InputTargetComponent.self] = nil for child in assemblyChildren { child.components.set(InputTargetComponent()) var manipulation = ManipulationComponent() manipulation.releaseBehavior = .stay child.manipulationComponent = manipulation } } -
7:11 - Closing an assembly
func closeAssembly() { for child in assemblyChildren { child.manipulationComponent = nil child.components[InputTargetComponent.self] = nil } components.set(InputTargetComponent()) var manipulation = ManipulationComponent() manipulation.releaseBehavior = .stay manipulationComponent = manipulation }
-
-
- 0:00 - Introduction
An overview of building collaborative spatial experiences on Apple Vision Pro, including real-time manipulation of rich 3D assemblies, interactive clipping, and automatic expansion of sub-assemblies.
- 2:55 - Asset preparation
Learn the key requirements for preparing 3D assets for spatial computing, including preserving a deep, nested hierarchy in your USDZ exports so that individual parts remain independently selectable and manipulable at runtime.
- 5:05 - Manipulating the hierarchy
See how to use ManipulationComponent and InputTargetComponent to make an entire assembly — or each of its sub-entities individually — interactive. Covers the openAssembly() and closeAssembly() patterns and the releaseBehavior setting.
- 8:15 - Interactive clipping
Explore ClippingComponent, a new RealityKit capability in visionOS 26 that lets people see through complex assemblies. Covers the three-state clipping machine (.off, .on, .editing), coordinate frame transformations, and how drag gestures update clipping plane bounds.
- 18:16 - Autoexpansion
Understand how to automatically expand an assembly's sub-components along the most meaningful axis using volume-weighted variance. Covers the math behind choosing the expansion axis and assembling FromToBy animations to move parts into position.
- 24:10 - Next steps
Key takeaways and pointers to the Model Manipulator sample project, related sessions on the spatial preview framework, and recommended background on vector math and linear algebra.