パーティクルはこのモジュールで設定した力(風、引力など)によって加速させることができます。
このモジュールは、Particle System コンポーネントの一部です。新しい Particle System ゲームオブジェクトを作成するとき、または終了したゲームオブジェクトに Particle System コンポーネントを加えるとき、Unity は Force over Lifetime モジュールを Particle System に加えます。デフォルトでは、このモジュールは無効化されます。新しい Particle System を作成し、このモジュールを有効にするには、以下を行います。
このモジュールは Particle System コンポーネントの一部であるため、ParticleSystem クラスを通してアクセスします。ランタイムにアクセスし値を変更する方法については、Force over Lifetime モジュール API ドキュメント を参照してください。
このセクション内の一部のプロパティでは、異なるモードを使用して値の設定が行えます。使用可能なモードについての詳細は、Varying properties over time を参照してください。
プロパティ | 機能 |
---|---|
X, Y, Z | X、Y、Z 軸でそれぞれのパーティクルに適用される力 |
Space | 力がローカル、ワールド空間のどちらで適用されるかを選択します。 |
Randomize | Two Constants または Two Curves モードを使うと、定義された範囲の各フレームで新しい力の方向が選択される原因になります。これによってより乱れた、一貫性のない動きが発生します。 |
流体は移動するとき、しばしば力による影響を受けます。例えば、煙は火から立ちのぼるときに、その周りの熱い空気にあおられて、かすかに加速します。かすかな影響は、カーブを使用して、パーティクルの生存期間にわたる力を制御することにより実行できます。前例を用いると、煙は最初に上向きに加速していきますが、上に行くにつれ空気が次第に冷たくなり、上向きの力は弱まっていきます。火からの分厚い煙は最初加速するかもしれませんが、その後広がるにつれて減速しますし、長い間残っていればもしかすると地上に向けて落下し始めるかもしれません。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.