Properties

CC3ScalableMeshParticle Class Reference

CC3ScalableMeshParticle is a type of CC3MeshParticle that can be scaled. More...

#import <CC3MeshParticles.h>

Inheritance diagram for CC3ScalableMeshParticle:
Inheritance graph
[legend]
Collaboration diagram for CC3ScalableMeshParticle:
Collaboration graph
[legend]

List of all members.

Properties

BOOL isTransformRigid
BOOL isUniformlyScaledLocally
CC3Vector scale
GLfloat uniformScale

Detailed Description

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.


Property Documentation

- (BOOL) isTransformRigid [read, assign]

Returns whether the current transform applied to this particle is rigid.

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.

- (BOOL) isUniformlyScaledLocally [read, assign]

Indicates whether current local scaling (via the scale property) is uniform along all axes.

- (CC3Vector) scale [read, write, assign]

The scale of the particle in each dimension, relative to the emitter.

Unless non-uniform scaling is needed, it is recommended that you use the uniformScale property instead.

- (GLfloat) uniformScale [read, write, assign]

The scale of the particle, uniform in each dimension, relative to the emitter.

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.


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