EngineKit
Item Class Reference

#import <Item.h>

Inheritance diagram for Item:
Shape Box Capsule Cone Cylinder Floor Plane Pyramid Sphere Text Torus Tube

Class Methods

(instancetype) + create
 

Properties

SCNNode * node
 The node that this Item is wrapping.
 
id position
 
id rotation
 
id scale
 
SCNGeometry * geometry
 

Detailed Description

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.

Method Documentation

+ (instancetype) create

Used as a constructor for JavaScript. Creates an empty Item, with an empty node.

Returns
An empty Item.

Property Documentation

- (SCNGeometry *) geometry
readwritenonatomicstrong

An alias for this Item's node's geometry.

- (id) position
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).

- (id) rotation
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).

- (id) scale
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).


The documentation for this class was generated from the following files: