开发者

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..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜