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
5
7
29{
30 m_physicsMaterial = new QPhysicsMaterial(this);
31}
32
34{
35 return m_physicsMaterial;
36}
37
39{
40 if (m_physicsMaterial == newPhysicsMaterial)
41 return;
42 m_physicsMaterial = newPhysicsMaterial;
44}
45
QAbstractPhysicsBody()
\qmltype PhysicsBody \inherits PhysicsNode \inqmlmodule QtQuick3D.Physics
QPhysicsMaterial * physicsMaterial
void setPhysicsMaterial(QPhysicsMaterial *newPhysicsMaterial)
Combined button and popup list for selecting options.
#define emit