EngineKit
Capsule Class Reference

#import <Capsule.h>

Inheritance diagram for Capsule:
Shape <CapsuleExport> Item

Class Methods

(instancetype) + capsule
 
- Class Methods inherited from Item
(instancetype) + create
 
- Class Methods inherited from <CapsuleExport>
(instancetype) + create
 

Properties

CGFloat radius
 
CGFloat height
 
- 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 <CapsuleExport>
id position
 
id rotation
 
id scale
 
id color
 
CGFloat radius
 
CGFloat height
 

Detailed Description

A capsule, which is essentially a cylinder with two hemispheres on each end.

Method Documentation

+ (SCNCapsule *) capsule

Creates a new instance of Capsule, with the default measures set by SCNCapsule.

Returns
a new, default instance of Capsule.

Reimplemented from <CapsuleExport>.

Property Documentation

- (CGFloat) height
readwritenonatomicassign

An alias for the SCNCapsule's height property. Speficies the extent of the Capsule along the y axis.

- (CGFloat) radius
readwritenonatomicassign

An alias for the SCNCapsule's radius property. Speficies the radius used for both the Capsule's 'cylinder' and its 'hemispheres'. Both the cylinder's circular bases are aligned with the xz plane and centered in the origin.


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