- Qt 6.12
- Qt Quick 3D Physics
- QML Types
- DistanceJoint
- Qt Quick 3D Physics | Commercial or GPLv3

# DistanceJoint QML Type

A distance joint. More...

Import Statement: | `import QtQuick3D.Physics`
Since: | Qt 6.12

- List of all members, including inherited members

## Properties

- maxDistance : real `(since 6.12)`
- minDistance : real `(since 6.12)`

## Detailed Description

A distance joint that will keep the origins of the joint within the distance range specified by minDistance and maxDistance.

See also FixedJoint, PrismaticJoint, RevoluteJoint, and SphericalJoint.

## Property Documentation

### maxDistance : real `[default: 0.0, since 6.12]`

The maximum distance of the joint constraint. The constraint is only enforced when this value is greater than `0.0`.

Range: `[0, inf]`

This property was introduced in Qt 6.12.

See also minDistance.

### minDistance : real `[default: 0.0, since 6.12]`

The minimum distance of the joint constraint. The constraint is only enforced when this value is greater than `0.0`.

Range: `[0, inf]`

This property was introduced in Qt 6.12.

See also maxDistance.