PhysicsJoint QML Type

Base type for joints. More...

Import Statement: import QtQuick3D.Physics
Since: Qt 6.12

Properties

Detailed Description

This is the abstract base type for all joints.

All joints have two bodies, and for each body a position and an orientation of the joint relative to its local frame. If one of the bodies is not set then the joint will be connected to the world.

Note: At least one of the bodies needs to be dynamic.

See also DistanceJoint, FixedJoint, PrismaticJoint, RevoluteJoint, and SphericalJoint.

Property Documentation

bodyA : PhysicsBody* [default: null, since 6.12]

This property defines the first of the bodies this joint connects to.

This property was introduced in Qt 6.12.

bodyB : PhysicsBody* [default: null, since 6.12]

This property defines the second of the bodies this joint connects to.

This property was introduced in Qt 6.12.

orientationA : quaternion [default: (1, 0, 0, 0), since 6.12]

The orientation of the joint relative to PhysicsJoint::bodyA.

This property was introduced in Qt 6.12.

orientationB : quaternion [default: (1, 0, 0, 0), since 6.12]

The orientation of the joint relative to PhysicsJoint::bodyB.

This property was introduced in Qt 6.12.

positionA : vector3d [default: (0, 0, 0), since 6.12]

The position of the joint relative to PhysicsJoint::bodyA.

This property was introduced in Qt 6.12.

positionB : vector3d [default: (0, 0, 0), since 6.12]

The position of the joint relative to PhysicsJoint::bodyB.

This property was introduced in Qt 6.12.