|
EngineKit
|
#import <Item.h>
Class Methods | |
| (instancetype) | + create |
Properties | |
| SCNNode * | node |
| The node that this Item is wrapping. | |
| id | position |
| id | rotation |
| id | scale |
| SCNGeometry * | geometry |
An "abstract" superclass for all graphic items. This includes anything that could be in the game world - from objects and meshes to lights, cameras, etc. Basically, it's a wrapper for SCNNode.
| + (instancetype) create |
Used as a constructor for JavaScript. Creates an empty Item, with an empty node.
|
readwritenonatomicstrong |
An alias for this Item's node's geometry.
|
readwritenonatomicstrong |
An alias for this Item's node's position. The object itself is a Position object. The setter accepts any object valid for the Position's -initWithObject: method, including a Position object that may be initialized in other ways. The getter always returns a Position object. Attempting to set an invalid object triggers an assert(false).
|
readwritenonatomicstrong |
An alias for this Item's node's rotation. The object itself is a Rotation object. The setter accepts any object valid for the Rotation's -initWithObject: method, including a Rotation object that may be initialized in other ways. The getter always returns a Rotation object. Attempting to set an invalid object triggers an assert(false).
|
readwritenonatomicstrong |
An alias for this Item's node's scale. The object itself is a Vector object. The setter accepts any object valid for the Vector's -initWithObject: method, including a Vector object that may be initialized in other ways. The getter always returns a Vector object. Attempting to set an invalid object triggers an assert(false).