---
title: "orientationConstraint(inWorldSpace:with:)"
framework: scenekit
role: symbol
role_heading: Type Method
path: "scenekit/scntransformconstraint/orientationconstraint(inworldspace:with:)"
---

# orientationConstraint(inWorldSpace:with:)

## Declaration

```swift
class func orientationConstraint(inWorldSpace world: Bool, with block: @escaping (SCNNode, SCNQuaternion) -> SCNQuaternion) -> Self
```
