CAReplicatorLayer random position
How do you introduce randomnes开发者_运维问答s 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..
精彩评论