Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
19
#
include
"qabstractphysxnode_p.h"
20
#
include
"qtconfigmacros.h"
21
22
namespace
physx
{
23
class
PxCapsuleController;
24
}
25
26
QT_BEGIN_NAMESPACE
27
28
class
QCharacterController;
29
class
ControllerCallback;
30
31
class
QPhysXCharacterController
:
public
QAbstractPhysXNode
32
{
33
public
:
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
QPhysicsMaterial *
qtMaterial
()
const
override
;
39
bool
debugGeometryCapability
()
override
;
40
DebugDrawBodyType
getDebugDrawBodyType
()
override
;
41
void
detachFrontend
()
override
;
42
43
private
:
44
physx
::PxCapsuleController *controller =
nullptr
;
45
ControllerCallback *reportCallback =
nullptr
;
46
};
47
48
QT_END_NAMESPACE
49
50
#
endif
QAbstractPhysXNode
Definition
qabstractphysxnode_p.h:58
QAbstractPhysXNode::cleanup
virtual void cleanup(QPhysXWorld *)
Definition
qabstractphysxnode.cpp:118
QAbstractPhysXNode::updateMaterial
bool updateMaterial()
Definition
qabstractphysxnode.cpp:66
QAbstractPhysXNode::detachFrontend
virtual void detachFrontend()
Definition
qabstractphysxnode.cpp:167
QPhysXCharacterController
Definition
qphysxcharactercontroller_p.h:32
QPhysXCharacterController::QPhysXCharacterController
QPhysXCharacterController(QCharacterController *frontEnd)
Definition
qphysxcharactercontroller.cpp:62
QPhysXCharacterController::debugGeometryCapability
bool debugGeometryCapability() override
Definition
qphysxcharactercontroller.cpp:229
QPhysXCharacterController::qtMaterial
QPhysicsMaterial * qtMaterial() const override
Definition
qphysxcharactercontroller.cpp:224
QPhysXCharacterController::detachFrontend
void detachFrontend() override
Definition
qphysxcharactercontroller.cpp:239
QPhysXCharacterController::getDebugDrawBodyType
DebugDrawBodyType getDebugDrawBodyType() override
Definition
qphysxcharactercontroller.cpp:234
QPhysXCharacterController::init
void init(QPhysicsWorld *world, QPhysXWorld *physX) override
Definition
qphysxcharactercontroller.cpp:75
QPhysXCharacterController::cleanup
void cleanup(QPhysXWorld *physX) override
Definition
qphysxcharactercontroller.cpp:67
QPhysXCharacterController::sync
void sync(float deltaTime, QHash< QQuick3DNode *, QMatrix4x4 > &transformCache) override
Definition
qphysxcharactercontroller.cpp:136
QPhysXWorld
Definition
qphysxworld_p.h:33
physx
Definition
qphysxactorbody_p.h:22
PHYSX_RELEASE
#define PHYSX_RELEASE(x)
Definition
qabstractphysxnode.cpp:15
DebugDrawBodyType
DebugDrawBodyType
Definition
qabstractphysxnode_p.h:42
DebugDrawBodyType::Character
@ Character
Definition
qabstractphysxnode_p.h:47
QT_BEGIN_NAMESPACE
#define QT_BEGIN_NAMESPACE
Definition
qtconfigmacros.h:161
QT_END_NAMESPACE
#define QT_END_NAMESPACE
Definition
qtconfigmacros.h:162
qtquick3dphysics
src
quick3dphysics
physxnode
qphysxcharactercontroller_p.h
Generated on
for Qt by
1.18.0