Edit

Share via


InertiaRotationBehavior2D.DesiredDeceleration Property

Definition

Gets or sets the desired angular deceleration, in radians per millisecond squared.

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

Property Value

The desired angular deceleration, in radians per millisecond squared.

Remarks

This property represents the desired angular deceleration to be used during the inertia operation. This property value is mutually exclusive with the DesiredRotation property; setting this property will set DesiredRotation to NaN. The default value for both this property and DesiredRotation is NaN. You must set one or the other property before inertia processing starts.

DesiredDeceleration must be a finite, non-negative number.

This property cannot be set while the inertia processor is running; otherwise, an exception is thrown.

Applies to