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
Copyright © 2021 Jogjafile Inc.
You must
setInstanceTransform:(CATransform3D)transformto each replicated layer.Use that in conjunction with
arc4rand()to randomise the positions..