InertiaRotationBehavior2D.InitialVelocity 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定初始旋轉速度 (以每毫秒的弧度計)。
public:
property float InitialVelocity { float get(); void set(float value); };
public float InitialVelocity { get; set; }
member this.InitialVelocity : single with get, set
Public Property InitialVelocity As Single
屬性值
初始旋轉速度 (以每毫秒的弧度計)。
備註
這個屬性的預設值為 NaN
。 將此屬性保留為預設值,或將此屬性設定為零, (0) 將會停用旋轉慣性。
當慣性處理器正在執行時,無法設定這個屬性;否則會擲回例外狀況。