Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qphysxcharactercontroller_p.h
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef PHYSXCHARACTERCONTROLLER_H
6#define PHYSXCHARACTERCONTROLLER_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
20#include "qtconfigmacros.h"
21
22namespace physx {
23class PxCapsuleController;
24}
25
27
28class QCharacterController;
29class ControllerCallback;
30
32{
33public:
34 QPhysXCharacterController(QCharacterController *frontEnd);
35 void cleanup(QPhysXWorld *physX) override;
36 void init(QPhysicsWorld *world, QPhysXWorld *physX) override;
37 void sync(float deltaTime, QHash<QQuick3DNode *, QMatrix4x4> &transformCache) override;
38 void createMaterial(QPhysXWorld *physX) override;
39 bool debugGeometryCapability() override;
41
42private:
43 physx::PxCapsuleController *controller = nullptr;
44 ControllerCallback *reportCallback = nullptr;
45};
46
48
49#endif
virtual void cleanup(QPhysXWorld *)
void createMaterialFromQtMaterial(QPhysXWorld *physX, QPhysicsMaterial *qtMaterial)
QPhysXCharacterController(QCharacterController *frontEnd)
DebugDrawBodyType getDebugDrawBodyType() override
void init(QPhysicsWorld *world, QPhysXWorld *physX) override
void cleanup(QPhysXWorld *physX) override
void createMaterial(QPhysXWorld *physX) override
void sync(float deltaTime, QHash< QQuick3DNode *, QMatrix4x4 > &transformCache) override
#define PHYSX_RELEASE(x)
DebugDrawBodyType
#define QT_BEGIN_NAMESPACE
#define QT_END_NAMESPACE