A gesture recognizer that uses rotation gestures involving two touches to rotate a given entity.
SDKs
- iOS 13.0+
- Xcode 11.0+
Framework
- Reality
Kit
Declaration
@objc class EntityRotationGestureRecognizer : UIRotation Gesture Recognizer
A gesture recognizer that uses rotation gestures involving two touches to rotate a given entity.
SDKs
Framework
@objc class EntityRotationGestureRecognizer : UIRotation Gesture Recognizer
init(target: Any?, action: Selector?)
Creates a rotation gesture recognizer with a target instance and an action selector.
var entity: Has Collision?
The entity on which the recognizer operates.
func touches Began(Set<UITouch>, with: UIEvent)
Tells the recognizer that the user has touched the entity with one or more fingers.
func install Gestures(ARView .Entity Gestures, for: Has Collision) -> [Entity Gesture Recognizer]
Installs standard gestures onto the given entity, configured to be recognized simultaneously.
struct ARView .Entity Gestures
The set of possible entity gesture recognizers.
func gesture Recognizer(UIGesture Recognizer, should Recognize Simultaneously With: UIGesture Recognizer) -> Bool
Determines whether two gesture recognizers should simultaneously recognize a gesture.
class Entity Scale Gesture Recognizer
A gesture recognizer that uses a pinch gesture to scale or zoom an entity.
class Entity Translation Gesture Recognizer
A gesture recognizer that uses a pan gesture to move an entity.
protocol Entity Gesture Recognizer
An type of gesture recognizer that works on entities.