Classes

The following classes are available globally.

  • 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).

    See more

    Declaration

    Swift

    public final class TorchGestureManager : NSObject
  • Declaration

    Swift

    @objc
    public class TorchKitSceneIdName : NSObject
  • Declaration

    Swift

    @objc
    public class TorchKitSceneObjectIdName : NSObject
  • The TorchKit class is used for global initialization and teardown.

    See more

    Declaration

    Swift

    public class TorchKit : NSObject
  • TorchProjectNode is the class that loads a .torchkitproj and generates child nodes to execute a Torch project. It handles asset loading and unloading, creating child nodes, and responding to updates in the scene. However, there are a few support functions that must be called in order for everything to work:

    • tick must be called once a frame to advance the project state.
    • tap must be called when an object has been tapped. This is handled automatically if the TorchGestureManager is used.
    See more

    Declaration

    Swift

    public class TorchProjectNode : SCNNode
  • TorchSceneNode maps directly to an object in a Torch project.

    See more

    Declaration

    Swift

    public class TorchSceneNode : SCNNode