![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qquick3dphysicsqueryhit_p.h>
Public Member Functions | |
| QQuick3DPhysicsQueryHit () | |
| \qmlvaluetype queryHit \inqmlmodule QtQuick3D.Physics | |
| QQuick3DPhysicsQueryHit (const physx::PxQueryHit &hit, const physx::PxActorShape &actorShape) | |
| Q_REVISION (6, 13) QAbstractPhysicsNode *body() const | |
| Q_REVISION (6, 13) QAbstractCollisionShape *shape() const | |
Properties | |
| QAbstractPhysicsNode * | body |
| QAbstractCollisionShape * | shape |
Definition at line 34 of file qquick3dphysicsqueryhit_p.h.
|
default |
\qmlvaluetype queryHit \inqmlmodule QtQuick3D.Physics
Represents the result of a spatial physics query hit (raycast, sweep, or overlap).
The queryHit struct provides hit information returned by spatial queries in the physics world.
\qmlproperty PhysicsNode queryHit::body \readonly
Holds the physical body (PhysicsNode) intersected by the spatial query.
\qmlproperty CollisionShape queryHit::shape \readonly
Holds the specific collision shape (CollisionShape) intersected by the spatial query. Returns null if the underlying PhysX shape has no associated Qt collision shape.
body property is populated, but the shape property will be null because character controllers do not assign individual shape metadata.
|
explicit |
Definition at line 46 of file qquick3dphysicsqueryhit.cpp.
| QQuick3DPhysicsQueryHit::Q_REVISION | ( | 6 | , |
| 13 | ) const |
| QQuick3DPhysicsQueryHit::Q_REVISION | ( | 6 | , |
| 13 | ) const |
|
read |
Definition at line 40 of file qquick3dphysicsqueryhit_p.h.
|
read |
Definition at line 41 of file qquick3dphysicsqueryhit_p.h.