1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#include "qphysxrigidbody_p.h"
5
6#include "qabstractphysicsbody_p.h"
7
8QT_BEGIN_NAMESPACE
9
10QPhysXRigidBody::QPhysXRigidBody(QAbstractPhysicsBody *frontEnd) : QPhysXActorBody(frontEnd) { }
11
12void QPhysXRigidBody::createMaterial(QPhysXWorld *physX)
13{
14 createMaterialFromQtMaterial(
15 physX, qtMaterial: static_cast<QAbstractPhysicsBody *>(frontendNode)->physicsMaterial());
16}
17
18QT_END_NAMESPACE
19

source code of qtquick3dphysics/src/quick3dphysics/physxnode/qphysxrigidbody.cpp