CC3ScalableMeshParticle Class Reference
Inherits from | CC3MeshParticle : CC3ParticleBase : NSObject |
Declared in | CC3MeshParticles.h |
Overview
CC3ScalableMeshParticle is a type of CC3MeshParticle that can be scaled.
This clas is distinct from CC3MeshParticle so that mesh particle that do not require scaling do not have to carry storage for scaling information.
Tasks
-
scale
property -
uniformScale
property -
isUniformlyScaledLocally
property -
isTransformRigid
property
Properties
isTransformRigid
Returns whether the current transform applied to this particle is rigid.
@property (nonatomic, readonly) BOOL isTransformRigid
Discussion
A rigid transform contains only rotation and translation transformations and does not include any scaling transformation. For the transform to be rigid, this particle must have unity scaling.
Declared In
CC3MeshParticles.h
isUniformlyScaledLocally
Indicates whether current local scaling (via the scale property) is uniform along all axes.
@property (nonatomic, readonly) BOOL isUniformlyScaledLocally
Declared In
CC3MeshParticles.h
scale
The scale of the particle in each dimension, relative to the emitter.
@property (nonatomic, assign) CC3Vector scale
Discussion
Unless non-uniform scaling is needed, it is recommended that you use the uniformScale property instead.
Declared In
CC3MeshParticles.h
uniformScale
The scale of the particle, uniform in each dimension, relative to the emitter.
@property (nonatomic, assign) GLfloat uniformScale
Discussion
Unless non-uniform scaling is needed, it is recommended that you use this property instead of the scale property.
If non-uniform scaling is applied via the scale property, this uniformScale property will return the length of the scale property vector divided by the length of a unit cube (sqrt(3.0)), as an approximation of the overall scaling condensed to a single scalar value.
Declared In
CC3MeshParticles.h