Protocol

EntityGestureRecognizer

An type of gesture recognizer that works on entities.

Declaration

protocol EntityGestureRecognizer : UIGestureRecognizer

Topics

Specifying the Entity

var entity: HasCollision?

The entity on which the recognizer operates.

Required.

Specifying the Location

func location(in: Entity?) -> SIMD3<Float>?

Required. Default implementation provided.

See Also

Adding Gesture Recognizers to Entities

func installGestures(ARView.EntityGestures, for: HasCollision) -> [EntityGestureRecognizer]

Installs standard gestures onto the given entity, configured to be recognized simultaneously.

struct ARView.EntityGestures

The set of possible entity gesture recognizers.

func gestureRecognizer(UIGestureRecognizer, shouldRecognizeSimultaneouslyWith: UIGestureRecognizer) -> Bool

Determines whether two gesture recognizers should simultaneously recognize a gesture.

class EntityRotationGestureRecognizer

A gesture recognizer that uses rotation gestures involving two touches to rotate a given entity.

class EntityScaleGestureRecognizer

A gesture recognizer that uses a pinch gesture to scale or zoom an entity.

class EntityTranslationGestureRecognizer

A gesture recognizer that uses a pan gesture to move an entity.