Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qabstractphysicsbody.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 "
qabstractphysicsbody_p.h
"
5
6
QT_BEGIN_NAMESPACE
7
28
QAbstractPhysicsBody::QAbstractPhysicsBody
()
29
{
30
m_physicsMaterial =
new
QPhysicsMaterial
(
this
);
31
}
32
33
QPhysicsMaterial
*
QAbstractPhysicsBody::physicsMaterial
()
const
34
{
35
return
m_physicsMaterial;
36
}
37
38
void
QAbstractPhysicsBody::setPhysicsMaterial
(
QPhysicsMaterial
*newPhysicsMaterial)
39
{
40
if
(m_physicsMaterial == newPhysicsMaterial)
41
return
;
42
m_physicsMaterial = newPhysicsMaterial;
43
emit
physicsMaterialChanged
();
44
}
45
46
QT_END_NAMESPACE
QAbstractPhysicsBody::physicsMaterialChanged
void physicsMaterialChanged()
QAbstractPhysicsBody::QAbstractPhysicsBody
QAbstractPhysicsBody()
\qmltype PhysicsBody \inherits PhysicsNode \inqmlmodule QtQuick3D.Physics
Definition
qabstractphysicsbody.cpp:28
QAbstractPhysicsBody::physicsMaterial
QPhysicsMaterial * physicsMaterial
Definition
qabstractphysicsbody_p.h:28
QAbstractPhysicsBody::setPhysicsMaterial
void setPhysicsMaterial(QPhysicsMaterial *newPhysicsMaterial)
Definition
qabstractphysicsbody.cpp:38
QPhysicsMaterial
Definition
qphysicsmaterial_p.h:24
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
qabstractphysicsbody_p.h
emit
#define emit
Definition
qtmetamacros.h:49
qtquick3dphysics
src
quick3dphysics
qabstractphysicsbody.cpp
Generated by
1.9.7