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
qstaticrigidbody.cpp
Go to the documentation of this file.
1
// Copyright (C) 2021 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4
#
include
"qstaticrigidbody_p.h"
5
6
#
include
"physxnode/qphysxstaticbody_p.h"
7
8
QT_BEGIN_NAMESPACE
9
10
/*!
11
\qmltype StaticRigidBody
12
\inqmlmodule QtQuick3D.Physics
13
\inherits PhysicsBody
14
\since 6.4
15
\brief A physical body that does not move.
16
17
The StaticRigidBody type defines an immovable and static rigid body. Any collision shape is allowed for this body.
18
19
\note Do not move a StaticRigidBody. It is technically possible to do so, but it
20
will incur a performance penalty, and colliding dynamic objects may not react correctly.
21
Use a DynamicRigidBody with \l {DynamicRigidBody::isKinematic}{isKinematic} set to \c true instead.
22
*/
23
24
QStaticRigidBody::QStaticRigidBody() =
default
;
25
26
QAbstractPhysXNode *QStaticRigidBody::createPhysXBackend()
27
{
28
return
new
QPhysXStaticBody(
this
);
29
}
30
31
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
#define QT_BEGIN_NAMESPACE
Definition
qtconfigmacros.h:160
QT_END_NAMESPACE
#define QT_END_NAMESPACE
Definition
qtconfigmacros.h:161
qtquick3dphysics
src
quick3dphysics
qstaticrigidbody.cpp
Generated on
for Qt by
1.14.0