SKFieldNode.CreateCustomField(SKFieldForceEvaluator) 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.
Creates a field that applies a custom force, returned by evaluator
, to physics bodies.
[Foundation.Export("customFieldWithEvaluationBlock:")]
public static SpriteKit.SKFieldNode CreateCustomField (SpriteKit.SKFieldForceEvaluator evaluator);
static member CreateCustomField : SpriteKit.SKFieldForceEvaluator -> SpriteKit.SKFieldNode
Parameters
- evaluator
- SKFieldForceEvaluator
Returns
- Attributes