How do you introduce randomness within a CAReplicatorLayer layer? For example, randomizing the positions of each particle.
Best, Vance
How do you introduce randomness within a CAReplicatorLayer layer? For example, randomizing the positions of each particle.
Best, Vance
You must setInstanceTransform:(CATransform3D)transform
to each replicated layer.
Use that in conjunction with arc4rand()
to randomise the positions..