EngineKit
|
#import <Shape.h>
Properties | |
id | color |
![]() | |
SCNNode * | node |
The node that this Item is wrapping. | |
id | position |
id | rotation |
id | scale |
SCNGeometry * | geometry |
Additional Inherited Members | |
![]() | |
(instancetype) | + create |
An abstract subclass of Item
, representing geometric objects. All physical visible objects, such as Spheres
and Boxes
, are subclasses of Shape
.
|
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.