EngineKit
Box Class Reference

#import <Box.h>

Inheritance diagram for Box:
Shape <BoxExport> Item

Class Methods

(instancetype) + box
 
- Class Methods inherited from Item
(instancetype) + create
 
- Class Methods inherited from <BoxExport>
(instancetype) + create
 

Properties

CGFloat width
 
CGFloat height
 
CGFloat length
 
CGFloat chamferRadius
 
- Properties inherited from Shape
id color
 
- Properties inherited from Item
SCNNode * node
 The node that this Item is wrapping.
 
id position
 
id rotation
 
id scale
 
SCNGeometry * geometry
 
- Properties inherited from <BoxExport>
id position
 
id rotation
 
id scale
 
id color
 
CGFloat width
 
CGFloat height
 
CGFloat length
 
CGFloat chamferRadius
 

Detailed Description

A paralelepiped, with specificiable width, length and height. The edges and vertices of the Box's geometry may also be rounded with the chamferRadius property. Essentially, a wrapper for SCNBox.

Method Documentation

+ (SCNBox *) box

Creates a new instance of Box, with the default measures set by SCNBox, which create a cube with no chamfer.

Returns
a new instance of Box.

Reimplemented from <BoxExport>.

Property Documentation

- (CGFloat) chamferRadius
readwritenonatomicassign

An alias for the SCNBox's chamferRadius property. Speficies the radius to use when rounding both the edges and the vertices of the Box.

- (CGFloat) height
readwritenonatomicassign

An alias for the SCNBox's height property. Speficies the size of the box along its y axis.

- (CGFloat) length
readwritenonatomicassign

An alias for the SCNBox's length property. Speficies the size of the box along its z axis.

- (CGFloat) width
readwritenonatomicassign

An alias for the SCNBox's width property. Speficies the size of the box along its x axis.


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