EngineKit
Shape Class Reference

#import <Shape.h>

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

Properties

id color
 
- Properties inherited from Item
SCNNode * node
 The node that this Item is wrapping.
 
id position
 
id rotation
 
id scale
 
SCNGeometry * geometry
 

Additional Inherited Members

- Class Methods inherited from Item
(instancetype) + create
 

Detailed Description

An abstract subclass of Item, representing geometric objects. All physical visible objects, such as Spheres and Boxes, are subclasses of Shape.

Property Documentation

- (id) color
readwritenonatomicstrong

An easy setter for the Shape's node's geometry's materials. It creates an SCNMaterial and sets it as the geometry's only material, so that the object will have the given color. It accepts any object that would be accepted by Color's +colorWithObject: method. The getter should never be used, since there is no guarantee the geometry's materials will still be colors.


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