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
qphysxgravity_p.h
Go to the documentation of this file.
1
// Copyright (C) 2026 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
PHYSXGRAVITY_H
6
#
define
PHYSXGRAVITY_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
"qphysicsgravity_p.h"
20
21
QT_BEGIN_NAMESPACE
22
23
class
QAbstractPhysicsNode;
24
class
QAbstractPhysXNode
;
25
26
// Applying a GravityField's gravity to one body. Called
27
// once per frame, before the bodies are synced and the next step is simulated.
28
namespace
QPhysXGravity
{
29
30
// Contributes what `gravity` says at the body's position to it. A dynamic body
31
// gets it as a force, so one that is asleep is woken only when `wake` says the
32
// gravity is new to it; a character controller adds it to its own gravity.
33
void
apply
(
const
QPhysicsGravity &gravity, QPhysicsGravity::Target target,
34
QAbstractPhysicsNode *node,
QAbstractPhysXNode
*backend,
bool
wake);
35
36
// Wakes a dynamic body that a gravity has started acting on.
37
void
wake
(QAbstractPhysicsNode *node,
QAbstractPhysXNode
*backend);
38
39
}
// namespace QPhysXGravity
40
41
QT_END_NAMESPACE
42
43
#
endif
QAbstractPhysXNode
Definition
qabstractphysxnode_p.h:58
QPhysXGravity
Definition
qphysxgravity_p.h:28
QPhysXGravity::apply
void apply(const QPhysicsGravity &gravity, QPhysicsGravity::Target target, QAbstractPhysicsNode *node, QAbstractPhysXNode *backend, bool wake)
Definition
qphysxgravity.cpp:41
QPhysXGravity::wake
void wake(QAbstractPhysicsNode *node, QAbstractPhysXNode *backend)
Definition
qphysxgravity.cpp:80
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
simulatedActorOf
static QT_BEGIN_NAMESPACE physx::PxRigidDynamic * simulatedActorOf(QAbstractPhysicsNode *node, QAbstractPhysXNode *backend)
Definition
qphysxgravity.cpp:17
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
qphysxgravity_p.h
Generated on
for Qt by
1.18.0