InertiaExpansionBehavior2D.InitialRadius Property

Definition

Gets or sets the initial average radius, in coordinate units.

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

Property Value

The initial average radius, in coordinate units.

Remarks

This property is used by the inertia processor to calculate the scale factor for an element that is expanding.

For instance, if the InitialVelocityX and InitialVelocityY properties are set to 3.75, this informs the inertia processor that the starting expansion velocity is 3.75 coordinate units per millisecond along both axes (expansion must be proportional).

The scale factor associated with this rate of expansion depends upon the size of the element that is expanding. For a small element, this expansion velocity represents a larger scale factor than for a large element. You inform the inertia processor of the element size by setting the InitialRadius property.

The default value for the InitialRadius property is 1.0.

Valid values are any finite number greater than or equal to 1.0.

Applies to