Align instances using the circumference
ASTER::ACTION::ALIGN::the Circumference of Circle
円周状にオブジェクトインスタンスを配置する
CF25 アプリケーション実行中に、選択したオブジェクト・インスタンスの座標を整列・変更します。
選択できるオブジェクト・インスタンスの種類はスプライト ( Active ) のみに対応。
Parameter.1
オブジェクト・インスタンスを選択。コントローラにはアクティブ ( スプライト ) のみ選択可能です。
アクティブ以外のオブジェクトタイプを指定した場合、イベントからアクション実行時にエラーが表示され、処理を中止します。
Parameter.2
" 100, 200, 50, 50, +10, +10, +0, +72, true "
index | Name | Data Type | Detail |
---|---|---|---|
0 | Center X | int | Center X pos of Circle |
1 | Center Y | int | Center Y |
2 | Radius 1 | unsigned int | Radius X ( semi-major axis ) |
3 | Radius 2 | unsigend int | Radius Y ( semi-minor axis ) |
4 | GrowRad 1 | int | GrowRadius Value 1 |
5 | GrowRad 2 | int | GrowRadius Value 2 |
6 | Setup ∠ | int | Startup Angle |
7 | Step ∠ | int | Step Angle |
8 | Anim Frame | boolean | Change Animation Frame Flag |
major axis と minor axis に対応しました。
-
楕円形に整列できる、半径は二値 ( major axis と minor axis ) が設定可能。
-
GrowRad は半径を拡大・縮小しながら配置するためのパラメータです。
Setup Angle + ( Step Angle * Instance Sequential Number ) = Angle
-
Setup angle は配置を開始するための初期角度です。
-
Step angle はインスタンスの数に応じて Setup Angle に加算される角度。
Notes
整列機能では浮動小数点数をパラメータに利用しません。以下はエラーとしてのサンプルです。
データ型を無視してパラメータを記述することはできません。
テンプレート・パラメータは互換性があるものもありますが、基本的にパラメータの数も異なるため、動作検証無しで他テンプレートへのパラメータ流用は避けてください。