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
qcapsuleshape_p.h
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
CAPSULESHAPE_H
6
#
define
CAPSULESHAPE_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
<
QtQuick3DPhysics
/
qtquick3dphysicsglobal
.
h
>
20
#
include
<
QtQuick3DPhysics
/
private
/
qabstractcollisionshape_p
.
h
>
21
#
include
<
QtQml
/
QQmlEngine
>
22
23
namespace
physx
{
24
class
PxCapsuleGeometry;
25
}
26
27
QT_BEGIN_NAMESPACE
28
29
class
Q_QUICK3DPHYSICS_EXPORT
QCapsuleShape
:
public
QAbstractCollisionShape
30
{
31
Q_OBJECT
32
QML_NAMED_ELEMENT(CapsuleShape)
33
Q_PROPERTY(
float
diameter READ diameter WRITE setDiameter NOTIFY diameterChanged)
34
Q_PROPERTY(
float
height READ height WRITE setHeight NOTIFY heightChanged)
35
public
:
36
QCapsuleShape();
37
~QCapsuleShape();
38
39
float
diameter()
const
;
40
void
setDiameter(
float
newDiameter);
41
42
float
height()
const
;
43
void
setHeight(
float
newHeight);
44
45
physx::PxGeometry *getPhysXGeometry() override;
46
bool
isStaticShape()
const
override {
return
false
; }
47
48
Q_SIGNALS:
49
void
diameterChanged();
50
void
heightChanged();
51
52
private
:
53
void
updatePhysXGeometry();
54
physx::PxCapsuleGeometry *m_physXGeometry =
nullptr
;
55
float
m_diameter = 100.0f;
56
float
m_height = 100.0f;
57
};
58
59
QT_END_NAMESPACE
60
61
#
endif
// CAPSULESHAPE_H
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
QCapsuleShape
Definition
qcapsuleshape_p.h:30
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
qcapsuleshape_p.h
Generated on
for Qt by
1.18.0