---
name: "setJointDriveOrientation"
type: command
status: ok
groups: ["PhysX"]
arma3_since: "2.22"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setJointDriveOrientation
revid: 379088
updated: 2026-09-27T09:40:35Z
---

# setJointDriveOrientation

*Command · PhysX · Arma 3 v2.22*

Locality: arguments **local** · effect **local**

## Description

Requires that a swing+twist or SLERP "drive" has been configured in [attachChild](../commands/attachChild.md).
Sets the joints target orientation (relative to the joint's own orientation).
The drive will then behave like a spring (springParameters are configured in the drive), trying to pull the child object to the desired orientation.

## Syntax

### Syntax 1

```sqf
joint setJointDriveOrientation [angle, axis]
```

**Parameters:**

- `joint` : [Object](../topics/Object.md) or NetObject - The parent vehicle that has a joint to a child, or the joint itself to be manipulated
- `angle`: [Number](../topics/Number.md) - The angle (in radians to rotate around axis), clockwise
- `axis`: [Vector3D](../topics/Vector3D.md) - The vector around which to rotate

**Returns:** [Nothing](../topics/Nothing.md)

### Syntax 2

```sqf
joint setJointDriveOrientation [vectorDir, vectorUp]
```

**Parameters:**

- `joint` : [Object](../topics/Object.md) or NetObject - The parent vehicle that has a joint to a child, or the joint itself to be manipulated
- `vectorDir`: [Vector3D](../topics/Vector3D.md) - [vectorDir](../commands/vectorDir.md)
- `vectorUp`: [Vector3D](../topics/Vector3D.md) - [vectorUp](../commands/vectorUp.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf

```

### Example 2

```sqf

```

### Example 3

```sqf

```

### Example 4

```sqf

```

### Example 5

```sqf

```

## See also

[attachChild](../commands/attachChild.md) · [setJointDrivePosition](../commands/setJointDrivePosition.md) · [setJointDriveLinearVelocity](../commands/setJointDriveLinearVelocity.md) · [setJointDriveAngularVelocity](../commands/setJointDriveAngularVelocity.md)

<sub>Source: [BI Community Wiki — setJointDriveOrientation](https://community.bistudio.com/wiki/setJointDriveOrientation) (revision 379088).</sub>
