<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKFieldNode/dragField()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKFieldNode(cm)dragField"
  },
  "title" : "dragField()"
}
-->

# dragField()

Creates a field node that applies a force that resists the motion of physics bodies.

```
class func dragField() -> SKFieldNode
```

## Return Value

A new drag field node.

## Discussion

The force is applied in the opposite direction of the physics body’s [`velocity`](/documentation/SpriteKit/SKPhysicsBody/velocity) property and has a magnitude proportional to the field’s [`strength`](/documentation/SpriteKit/SKFieldNode/strength) property and the physics body’s speed.  This field models Stoke’s Law.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)