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
5
7
36{
37 m_physicsMaterial = new QPhysicsMaterial(this);
38}
39
41{
42 return m_physicsMaterial;
43}
44
46{
47 if (m_physicsMaterial == newPhysicsMaterial)
48 return;
49 m_physicsMaterial = newPhysicsMaterial;
51}
52
54{
55 return m_simulationEnabled;
56}
57
58void QAbstractPhysicsBody::setSimulationEnabled(bool newSimulationEnabled)
59{
60 if (m_simulationEnabled == newSimulationEnabled)
61 return;
62 m_simulationEnabled = newSimulationEnabled;
64}
65
QAbstractPhysicsBody()
\qmltype PhysicsBody \inherits PhysicsNode \inqmlmodule QtQuick3D.Physics
void simulationEnabledChanged()
QPhysicsMaterial * physicsMaterial
void setPhysicsMaterial(QPhysicsMaterial *newPhysicsMaterial)
Combined button and popup list for selecting options.
#define emit