EntityDragAndRotateKit
Public kit to make your entity draggable and rotatable in your RealityView
Install / Use
/learn @bugrahaneefe/EntityDragAndRotateKitREADME
EntityDragAndRotateKit
A lightweight Swift package for visionOS that makes your entity draggable and rotatable in your RealityView
within a RealityView.
✨ Features
- 👆 Drag
Entityinstances in world space - 🔄 Rotate them around the Y-axis using
RotateGesture3D - ✅ Easily attach to any
Viewusing SwiftUI modifiers - 💡 Designed for visionOS apps using
RealityKit
Usage
- RealityView { ... }..enableMovingEntity('yourModelEntity' ?? ModelEntity())
🔧 Requirements
- visionOS 1.0+
- Swift 5.9+
- Xcode 15+
- RealityKit + SwiftUI
📦 Installation (Swift Package Manager)
- Open your visionOS project in Xcode.
- Go to File > Add Packages...
- Paste the URL of this repository:
