๐NodeWrapper
// โญ๏ธ defined in Item.swift
/// NodeWrapper provides a level of abstraction over SCNNode so that
/// interaction with the node must be routed through the world building API.
public class NodeWrapper {
fileprivate let backingNode: SCNNode
public var isModular: Bool
init(_ node: SCNNode) {
backingNode = node
isModular = false
}
init(identifier: WorldNodeIdentifier) {
backingNode = identifier.makeNode()
isModular = true
}
}
Last updated