UIFieldBehavior.CreateRadialGravityField(CGPoint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Factory method to create a field that attracts objects to a point.
[Foundation.Export("radialGravityFieldWithPosition:")]
public static UIKit.UIFieldBehavior CreateRadialGravityField (CoreGraphics.CGPoint position);
static member CreateRadialGravityField : CoreGraphics.CGPoint -> UIKit.UIFieldBehavior
Parameters
- position
- CGPoint
Returns
- Attributes
Remarks
Developers should set MinimumRadius or otherwise prevent object's from approaching position
too closely, as items can be "slingshotted" off the screen otherwise.
The field vectors of a radial gravity field look like: