Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
35
QAbstractPhysicsBody::QAbstractPhysicsBody
()
36
{
37
m_physicsMaterial =
new
QPhysicsMaterial
(
this
);
38
}
39
40
QPhysicsMaterial
*
QAbstractPhysicsBody::physicsMaterial
()
const
41
{
42
return
m_physicsMaterial;
43
}
44
45
void
QAbstractPhysicsBody::setPhysicsMaterial
(
QPhysicsMaterial
*newPhysicsMaterial)
46
{
47
if
(m_physicsMaterial == newPhysicsMaterial)
48
return
;
49
m_physicsMaterial = newPhysicsMaterial;
50
emit
physicsMaterialChanged
();
51
}
52
53
bool
QAbstractPhysicsBody::simulationEnabled
()
const
54
{
55
return
m_simulationEnabled;
56
}
57
58
void
QAbstractPhysicsBody::setSimulationEnabled(
bool
newSimulationEnabled)
59
{
60
if
(m_simulationEnabled == newSimulationEnabled)
61
return
;
62
m_simulationEnabled = newSimulationEnabled;
63
emit
simulationEnabledChanged
();
64
}
65
66
QT_END_NAMESPACE
QAbstractPhysicsBody::physicsMaterialChanged
void physicsMaterialChanged()
QAbstractPhysicsBody::QAbstractPhysicsBody
QAbstractPhysicsBody()
\qmltype PhysicsBody \inherits PhysicsNode \inqmlmodule QtQuick3D.Physics
Definition
qabstractphysicsbody.cpp:35
QAbstractPhysicsBody::simulationEnabledChanged
void simulationEnabledChanged()
QAbstractPhysicsBody::physicsMaterial
QPhysicsMaterial * physicsMaterial
Definition
qabstractphysicsbody_p.h:28
QAbstractPhysicsBody::setPhysicsMaterial
void setPhysicsMaterial(QPhysicsMaterial *newPhysicsMaterial)
Definition
qabstractphysicsbody.cpp:45
QAbstractPhysicsBody::simulationEnabled
bool simulationEnabled
Definition
qabstractphysicsbody_p.h:30
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:1590
qabstractphysicsbody_p.h
emit
#define emit
Definition
qtmetamacros.h:49
qtquick3dphysics
src
quick3dphysics
qabstractphysicsbody.cpp
Generated by
1.10.0