PhysicsJoint QML Type
Base type for joints. More...
| Import Statement: | import QtQuick3D.Physics |
| Since: | Qt 6.12 |
Properties
- bodyA : PhysicsBody*
(since 6.12) - bodyB : PhysicsBody*
(since 6.12) - orientationA : quaternion
(since 6.12) - orientationB : quaternion
(since 6.12) - positionA : vector3d
(since 6.12) - positionB : vector3d
(since 6.12)
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.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.