Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qfixedjoint.cpp
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
5
6#include "physxnode/qphysxactorbody_p.h"
9
10#include <extensions/PxFixedJoint.h>
11
13
14/*!
15 \qmltype FixedJoint
16 \inqmlmodule QtQuick3D.Physics
17 \since 6.12
18 \brief A fixed joint.
19
20 A fixed joint that will keep the orientation of the bodies fixed.
21
22 \sa {DistanceJoint}
23 \sa {PrismaticJoint}
24 \sa {RevoluteJoint}
25 \sa {SphericalJoint}
26*/
27
28physx::PxJoint *QFixedJoint::createPhysxJoint(physx::PxRigidActor *actorA,
29 physx::PxRigidActor *actorB,
30 const physx::PxTransform &trfA,
31 const physx::PxTransform &trfB)
32{
33 return physx::PxFixedJointCreate(*StaticPhysXObjects::getReference().physics, actorA, trfA,
34 actorB, trfB);
35}
36
37void QFixedJoint::setJointProperties()
38{
39 return;
40}
41
#define QT_BEGIN_NAMESPACE
#define QT_END_NAMESPACE