---
title: "setSteeringAngle(_:forWheelAt:)"
framework: scenekit
role: symbol
role_heading: Instance Method
path: "scenekit/scnphysicsvehicle/setsteeringangle(_:forwheelat:)"
---

# setSteeringAngle(_:forWheelAt:)

Pivots the specified wheel around its steering axis.

## Declaration

```swift
func setSteeringAngle(_ value: CGFloat, forWheelAt index: Int)
```

## Parameters

- `value`: The angle to set the wheel at relative to its steering axis, in radians.
- `index`: The index, in the vehicle’s doc://com.apple.scenekit/documentation/SceneKit/SCNPhysicsVehicle/wheels array, of the wheel to be pivoted.

## Discussion

Discussion Steering angles are relative to the wheel’s steeringAxis vector. With the default steering axis of {0.0, -1.0, 0.0}, a steering angle of 0.0 represents neutral steering, positive values steer the vehicle to the right, and negative values steer to the left.

## See Also

### Driving a Vehicle

- [applyEngineForce(_:forWheelAt:)](scenekit/scnphysicsvehicle/applyengineforce(_:forwheelat:).md)
- [applyBrakingForce(_:forWheelAt:)](scenekit/scnphysicsvehicle/applybrakingforce(_:forwheelat:).md)
- [speedInKilometersPerHour](scenekit/scnphysicsvehicle/speedinkilometersperhour.md)
