---
title: direction
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnphysicsfield/direction
---

# direction

The field’s directional axis.

## Declaration

```swift
var direction: SCNVector3 { get set }
```

## Discussion

Discussion Some types of fields apply forces whose direction or magnitude is relative to an axis. (For details on each type of field, see the methods listed in Creating Physics Fields.) Changing the direction changes the effects of these field types. The default direction is the vector {0, -1, 0}. With this direction, for example, linear gravity fields whose strength is positive cause objects to fall in the “down” direction of scene space.

## See Also

### Specifying a Field’s Area of Effect

- [halfExtent](scenekit/scnphysicsfield/halfextent.md)
- [scope](scenekit/scnphysicsfield/scope.md)
- [usesEllipsoidalExtent](scenekit/scnphysicsfield/usesellipsoidalextent.md)
- [offset](scenekit/scnphysicsfield/offset.md)
