共用方式為


InertiaTranslationBehavior2D.InitialVelocityY 屬性

定義

取得或設定沿 Y 軸的初始速度 (以每毫秒的座標單位計)。

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

屬性值

沿 Y 軸的初始速度 (以每毫秒的座標單位計)。

備註

這個屬性的預設值為 NaN。 將此屬性從預設值保持不變,或將此屬性設定為零 (0) 將會在 Y 軸上停用轉譯慣性。

當慣性處理器正在執行時,無法設定這個屬性;否則會擲回例外狀況。

適用於