TorchGestureManager

public final class TorchGestureManager : NSObject

TorchGestureManager is a helper class used to take gestures from the user and communicate them to the current TorchProjectNode. This includes object selection and object manipulation (scale, rotate, and transform).

  • The global singleton class

    Declaration

    Swift

    @objc
    public static let shared: TorchGestureManager
  • addGestureRecognizers is used to add the default gesture recognizers needed to recognize object selection and manipulation.

    Declaration

    Swift

    @objc
    public func addGestureRecognizers(to view: SCNView)

    Parameters

    to

    The SCNView that is being used to display the Torch Project