---
name: "setJointDrivePosition"
type: command
status: ok
groups: ["PhysX"]
arma3_since: "2.22"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setJointDrivePosition
revid: 378904
updated: 2026-08-11T14:56:34Z
---

# setJointDrivePosition

*Command · PhysX · Arma 3 v2.22*

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

## Description

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

## Syntax

```sqf
joint setJointDrivePosition pos
```

**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
- `pos`: [Array](../topics/Array.md) - target position in XYZ relative to the joint

**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) · [setJointDriveOrientation](../commands/setJointDriveOrientation.md) · [setJointDriveLinearVelocity](../commands/setJointDriveLinearVelocity.md) · [setJointDriveAngularVelocity](../commands/setJointDriveAngularVelocity.md)

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