次の方法で共有


InertiaRotationBehavior2D.DesiredDeceleration プロパティ

定義

必要な角度減速をミリ秒 2 乗あたりのラジアン単位で取得または設定します。

public:
 property float DesiredDeceleration { float get(); void set(float value); };
public float DesiredDeceleration { get; set; }
member this.DesiredDeceleration : single with get, set
Public Property DesiredDeceleration As Single

プロパティ値

必要な角度減速 (ミリ秒 2 乗あたりのラジアン単位)。

注釈

このプロパティは、慣性演算中に使用する目的の角度減速を表します。 このプロパティ値は、 DesiredRotation プロパティと相互に排他的です。このプロパティを設定すると、 DesiredRotationNaNに設定されます。 このプロパティと DesiredRotation の両方の既定値は NaN。 慣性処理を開始する前に、一方または他のプロパティを設定する必要があります。

DesiredDeceleration は有限の負以外の数値である必要があります。

慣性プロセッサの実行中は、このプロパティを設定できません。それ以外の場合は、例外がスローされます。

適用対象