Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
CAReplicatorLayerレイヤー内にランダム性をどのように導入しますか?たとえば、各パーティクルの位置をランダム化します。
ベスト、ヴァンス
setInstanceTransform:(CATransform3D)transformレプリケートされたレイヤーごとに行う必要があります。
setInstanceTransform:(CATransform3D)transform
と組み合わせて使用してarc4rand()、位置をランダム化します。
arc4rand()